04-07-2010 02:59 PM
I ran accross a couple issues following the steps in How to configure the BlackBerry MDS simulator to work behind a proxy. I am running the MDS 4.1.2 and 9700 simulators. During web development, I often use Fiddler as a web debugging proxy and I have it set to run on port 8888 of localhost.
First, the PDF document says to set these properties in the [HTTP HANDLER] section.
http.proxyHost=localhost
http.proxyPort=8888
However, what finally worked (after some googling) was these settings:
application.handler.http.proxyEnabled=true
application.handler.http.proxyHost=localhost
application.handler.http.proxyPort=8888
It seems like the documentation needs to be updated.
Second, I ran into the issue that it still didn't work for my Widget. I confirmed that using the Browser, it was using the proxy, but not http requests comming from the Widget. Do I have additional setup to do, or is this the expected behavior?
04-07-2010 07:56 PM - edited 04-07-2010 07:58 PM
Have you configured your config.xml file to white list the domains you wish to communicate with? This configuration is done in the <access> elements contained in the config.xml file.
Some more information on <access> element configuration can be found here:
04-07-2010 10:46 PM
I just tried this again to verify. I have the <access uri=> element configured correctly. When I run my widget, it loads <content src=> just fine, and I can see the web page on the 9700 simulator screen. However, I don't see a log of the traffic in Fiddler. When I quit out of the widget, and put the same URL as from my <content src=> in the browser, I see traffic in Fiddler. I am suspicious that the Widgets don't honor the [HTTP HANDLER] section.
02-07-2012 05:38 AM