11-24-2009 05:58 AM - edited 11-24-2009 06:00 AM
I'm essentially connecting to a webserver which is sending a json response back. However through my phone (on vodafone) I get directed to a html page with the following message.
Vodafone Mobile Internet
Some sites are already mobile friendly. Many more are not and may contain features that won’t work on your phone.
We can modify these sites to improve your experience.
By continuing you accept our
terms & conditions
Obiviously the poor little JSON parses throws a wobbler at this point
I'm connecting thusly.
Connection _Connection = Connector.open(url+";deviceside=true;ConnectionUID
=''"); _HttpConnection = (HttpConnection)_Connection; _HttpConnection.setRequestMethod(RequestType); _HttpConnection.setRequestProperty("User-Agent", "BlackBerry/3.2.1"); _HttpConnection.setRequestProperty("Content-Langua ge", "en-us"); _HttpConnection.setRequestProperty("Connection", "close");
Is there anything I can do here, or on my web server to deem the response "mobile friendly" and prevent this from happening. Obiously I can change the settings on my vodafone account, but I'd rather not have to deal with the message at all. So I don't get support calls when the application gets distributed to other vodafone users
Hope that makse sense,
Many thanks again for your time.
11-24-2009 06:52 AM
Not sure I can help much here. Reviewing the Betavine forum entries, it does seem people are successful in getting their sites white listed, or using Content-Type header values that are not transformed or setting .htaccess so that the pages are not transformed. Here are a few links that discuss these options:
whitelist email address
11-24-2009 08:57 AM
Peter you're a legend Thanks for your help. I'll review these and give them ago now.... alas I don't have access to the web server code directly. So it might take a while to leave feedback!