Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Posts: 1
Registered: ‎09-30-2009
My Device: Not Specified

MDS simulator ignores my proxy user name

I'm trying to use the MDS simulator to test with the smartphone simulator, but connect to external web pages.  I found the "http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800738/800792/..." article "How To - Configure the MDS simulator to work behind a proxy", which seems to work OK, to a point.  When I request an external web page in the simulator, I'm presented with an authentication dialog inside the simulator that asks for my proxy username, domain and password, even though I provided these in the "rimpublic.property" file:

 


[HTTP HANDLER]
application.handler.http.logging = true
application.handler.http.CookieSupport = true
application.handler.http.AuthenticationSupport = true
application.handler.http.AuthenticationTimeout = 3600000
application.handler.http.device.connection.timeout = 120000
application.handler.http.server.connection.timeout = 120000
application.handler.http.proxyEnabled = true
application.handler.http.proxyHost=proxy.my.com
application.handler.http.proxyPort=80
application.handler.http.proxyUser=username

application.handler.http.proxyPass=password

application.handler.http.proxyAutoConfig = false
application.handler.http.proxyAutoConfigURL =
application.handler.http.proxyAutoConfig.ScriptCacheTime = 0

 

This wouldn't really be a big problem, except that my proxy doesn't accept a "domain".  If I type anything in the domain field, I can see by sniffing outbound traffic that the MDS simulator is trying to to Basic Authentication with the Base64-encoded "domain\usernameSmiley Tongueassword". 

 

(e.g.:  Proxy-Authorization: Basic ZG9tYWluXHVzZXJuYW1lOnBhc3N3b3Jk)

 

If I leave the domain blank, it still base64-encodes: "\usernameSmiley Tongueassword" which is rejected by my proxy server - what I really need to supply is "usernameSmiley Tongueassword" with no domain, and no leading backslash.

 

I would have figured that the "application.handler.http.proxyUser/proxyPass" would have done this automatically, but they didn't (sniffig my HTTP traffic, it appears that the MDS simulator is trying to use these to do NTLM authentication, which my proxy server doesn't support).

 

Any suggestions?  Thanks.