11-14-2011 07:54 PM - edited 11-15-2011 11:23 AM
I have the following directive in my config.xml:
<rim:connection> <id>TCP_WIFI</id> <id>BIS-B</id> <id>MDS</id> <id>WAP2</id> <id>TCP_CELLULAR</id> <id>WAP</id> </rim:connection>
I'm making several XHR calls via $.ajax(). These calls work as expected when I'm connected through WiFi, but when I connect using just BIS, I get 502 BAD GATEWAY errors returned from the XHR call.
I have a valid data plan and the same code works in the BlackBerry browser.
Am I missing anything here? How can I further diagnose the issue?
Edit: Just tried with pure XMLHttpRequest - same outcome.
Edit: More info, the reponse is (xxxx is my server, accessible to the Internet):
<TITLE>ERROR: The requested URL could not be retrieved</TITLE> While trying to retrieve http://xx-xxx.xxxxxx.net:2000/login.php The following error was encountered: Zero Sized Reply Squid did not receive any data for the request. Generated by Blackberry.Internet.Browsing.Service (squid/2.7.STABLE7)
Edit 3: I have a feeling it has to do with the fact that I'm calling on port 2000 and the BlackBerry proxy isn't liking that. Any thoughts on that? What if I use the window.name workaround (http://friedcellcollective.net/outbreak/jsjquerywi
Thanks
11-16-2011 01:25 AM
11-16-2011 11:36 AM
I had our backend designer create some wrapper functions on port 80, and (very) preliminary testing seemed to show that it worked.
With that said, does anybody from RIM know what port restrictions (firewall or otherwise) exist on BIS connections through the BlackBerry proxy?