当电脑位于代理服务器后面时,如何使黑莓模拟器上的应用程序连接互联网
我的电脑配置在代理服务器后面以访问互联网。我参考了黑莓模拟器相关的帖子,并更改了我的MDS服务器设置,如下所示。
application.handler.http.proxyEnabled = true
application.handler.http.proxyHost=hostname
application.handler.http.proxyPort=hostport
application.handler.http.proxyUser=username
application.handler.http.proxyPass=password
此后,当MDS与模拟器一起启动时,我就可以使用浏览器了。但是当我点击浏览器时,它会要求输入用户名、密码和域名。之后互联网就可以正常工作了,
这就是问题所在。对于相同的设置,当我单击黑莓中的地图应用程序时,它不起作用。请让我知道需要更改哪些内容。
My PC configured behind a proxy server for internet access. I referred to the blackberry simulator related posts and changed my MDS server setting as follows
application.handler.http.proxyEnabled = true
application.handler.http.proxyHost=hostname
application.handler.http.proxyPort=hostport
application.handler.http.proxyUser=username
application.handler.http.proxyPass=password
After this when MDS is started with simulator, I am able to use the browser. But when I click the browser it asks for the username, password and domain name. After this the internet works properly
Here is the problem. For the same settings when I click the maps app in the blackberry it is not working. Kindly let me know what has to be changed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
并非所有应用程序都会使用 MDS 传输进行通信 - 例如,如果应用程序使用 Direct TCP 或 Wi-Fi,它将绕过您的 MDS 服务器并直接通过计算机的 TCP/IP 堆栈(在模拟器中运行时)。不幸的是,在这种情况下,模拟器不使用任何系统级代理设置(即 IE 中设置的代理设置)——因此它不会了解您的代理服务器,并且可能会失败。
我已经向 RIM 提到了这个缺陷,我希望他们能在未来的模拟器中解决这个问题。这将使使用 Charles 或 Fiddler 等工具进行调试变得更加容易。
Not all apps will use the MDS transport to communicate - for example if the app uses Direct TCP or Wi-Fi, it will bypass your MDS server and go directly over the computer's TCP/IP stack (when running in the simulator). Unfortunately in this case the simulator doesn't use any system-level proxy settings (i.e. the proxy settings set in IE) -- so it won't know about your proxy server and probably fail.
I've mentioned this deficiency to RIM and I'm hopeful they'll address it in future emulators. It would make it so much easier to debug with tools such as Charles or Fiddler.