HTTP through a "WAP" APN
| Wed, 2005-06-15 08:07 | |
|
No-one replied to my last post so I'll try a slightly different tack
.Could someone please explain the following. I have a 3650 (Symbian 6.1, 1.2SDK). The phone has a WAP APN (access point node) configured: wap.vodafone.co.uk. If I try to connect a socket to an off-portal host -- google.com, say -- through that APN then the connection times out and fails. However, the phone's native browser, which is configured to go through the same APN, can access google.com. So it's clear that some kind of enforced proxying is going on. But what, precisely, is happening inside the browser? I assumed at first that they were looking in the Comm DB's WAP_IP_BEARER table, looking up the WAP_GATEWAY_ADDRESS and using that as an HTTP proxy -- but at what port? Then I looked at a Nokia 6600's configuration and found that, for the "same" WAP APN, the WAP_GATEWAY_ADDRESS is 0.0.0.0. What am I missing here?! |
|






.
Forum posts: 2006
Is your code working with a GPRS APN (I mean a non-wap APN) ? If no, the error is probably in there.
Accessing the web through a WAP gateway is a kind of black art where no standard answer can be given as the configuration of the gateway is completely operator specific. And depending of it, you may or may not access data (ok, if the phone browser can, then you probably can as well).
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 10
Is your code working with a GPRS APN (I mean a non-wap APN) ? If no, the error is probably in there.
Yes, my code works fine through a "Vodafone Internet" (non-WAP) APN.
Here's what I'm about to try. I'll report the results here but perhaps you or someone else would like to comment on the likelihood of successÂ
(1) Run through all the IAP entries in the Comms DB of type OUTGOING GPRS
(2) Eliminate any IAPs whose names contain "MMS". (I suspect I can also eliminate ones containing "CSD" but don't understand enough about those yet.)
(3) For each given IAP, look for (a) a WAP_GATEWAY_ADDRESS entry and (b) a PROXY entry with that IAP's ID.
(4) Attempt an HTTP GET from a known reliable resource (e.g. google) through the IAP. If there is a PROXY entry, use the given server address and port. If there is a WAP_GATEWAY_ADDRESS, use that on port 8799. That appears to be the de facto (and de jure?) standard port number for WAP 2.0. As far as I can tell, WAP2.0 APNs tend to be configured to do HTTP proxying on that port. wap.vodafone.co.uk certanly behaves in that way and there's a quite a lot of evidence on the net that other operators' WAP APNs do it too. If neither (a) nor (b) exists, do the GET directly.
(5) When I find anything that works, set it to the "preferred" APN (if it isn't already) and record any proxy/gateway information, and we're done.
(6) To minimise delay, I'm going to try and do the GETs to the different APNs concurrently (can Symbian support that?!); also, looking for a preferred APN and trying that first seems like a good tactic. However, some users haven't set a preferred APN....
Cheers,
Tim.
Forum posts: 60
if you use WAP APN instead of GPRS (Vodafone Internet)? Why not just use Vodafone Internet?
A.
algis
Forum posts: 10
if you use WAP APN instead of GPRS (Vodafone Internet)? Why not just use Vodafone Internet?Â
My code needs to work on an arbitrary phone with arbitrary APN configurations in an arbitrary operator environment -- except that, by hypothesis, there is at least one APN through which HTTP to arbitrary points on the Internet is possible. I don't want the user to have to figure out which APN to use. I want to discover a good APN programatically and use that henceforth in the app. Some phones are configured to do HTTP through WAP APNs but the user never chose that setting and no preference is set.
If someone can tell me a simpler way of going about this then I'm listening.
Tim.
Forum posts: 17
I am also facing same problem.
but using RHTTP class (insted of Sockets) and using
CHttpFilterProxyInterface::InstallFilterL(iSession);
I can able to connect wap APN. but there is not much information to develop same thing in sockets.
If u have any solution (idea) Plz share with me.
Thanks
IndVin
Forum posts: 7
if not , is there a way to create any other AP which is more like a HTTP AP?
any suggestion wil be helpful .
thanks a lot