12 October 2009

How to debug LoadVars call on phones - phones

Go to showip.com or show-ip.com or whatismyipaddress.com or http://www.find-ip-address.org/ or whatever ip lookup website to retrieve your IP

Go to RDA (or launch your phone and configure it in a similar way)
Choose a phone (here the Nokia N95 8GB)
Go into Tools > Settings > Connection > Access points


Select your access point (here I choose 'Rda')


Using left softkey menu, choose Advanced Settings


Enter your IP in Proxy server address and 80 in Proxy port number

Et voila, launch a webpage or your SWF, choose the correct access point (here 'Rda') and look to your access.log and error.log
On google, I have
194.137.80.96 - - [08/Oct/2009:23:51:18 +0200] "GET http://www.google.com/ HTTP/1.1" 302 218 "-" "Mozilla/50 (SymbianOS/9.2; U; Series60/3.1 NokiaN95_8GB/31.0.015; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413"
194.137.80.96 - - [08/Oct/2009:23:51:18 +0200] "GET http://www.google.fr/ HTTP/1.1" 200 948 "-" "Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95_8GB/31.0.015; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413"
you see a Nokia95 8GB asking for http://www.google.com/ and get redirected (code 302) without problem (code 200) to google.fr which is 948bytes

194.137.80.96 - - [12/Oct/2009:23:15:25 +0200] "GET http://www.wwf.mobi/ HTTP/1.1" 200 2936 "-" "Mozilla/5.0 (SymbianOS/9.3; Series60/3.2 NokiaE72-1/021.011; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/525 (KHTML, like Gecko) Version/3.0 BrowserNG/7.1.14371"
Here, using a Nokia E72, I connected to WWF.mobi
Using Ctrl Panel > Connectivity > WLAN wizard > (Options)> Edit access point > (Options)> Advanced Settings
or
Ctrl Panel>Settings>Connection>Destinations>Internet>Rda> (Options)>Edit>(Options)> Advanced Settings

194.137.80.96 - - [12/Oct/2009:23:21:58 +0200] "GET http://ea.mobile.nokia.com/ea/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaE71-1/300.21.012; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413"
Using a Nokia E71, using Connectivity > WLAN wizard > (Options)> Edit access point > (Options)> Advanced Settings
or
Tools>Settings>Connection>Access points> Rda> (Options)>Edit>(Options)> Advanced Settings

The interesting part : you could find an error looking for 404 error like in
194.137.80.96 - - [08/Oct/2009:23:54:18 +0200] "GET http://www.find-ip-address.org/crossdomain.xml HTTP/1.1" 404 948 "-" "Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95_8GB/31.0.015; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413"

More info on HTTP Error codes

If the problem is on the POST/GET data itself, look into the error.log
To be honest, it's a real mess so you'll know what to do with it knowing what you're looking for only !

And remember to reset the proxy settings BEFORE the end of your reservation on RDA !
Note you could also duplicate an access point and add the proxy settings if you want to avoid killing pre-defined access points.

No comments: