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

Java Development

Reply
Regular Contributor
MrLitany
Posts: 65
Registered: ‎06-13-2011
My Device: mini curve

HttpConnection post via proxyHost

Dears,

 

Is there a way to read an http link through httpconnection object via proxy ,

i tried

_httpConnection.setRequestProperty("http.proxyHost", proxysite);
_httpConnection.setRequestProperty("http.proxyPort",  proxyport);

 

it didnt worked for me, ive read that i can do this post by performing a socket connection to this proxy and send the post as a packet to get the response, but not able to acheive it, kindly advice is it possible to reach a blocked link through proxy within Rim APis ?

 

Thanks in advance.

Developer
crispyoz
Posts: 223
Registered: ‎10-01-2011
My Device: Bold 9900

Re: HttpConnection post via proxyHost

If your proxy is blocking the site, then finaind away around that would most likely break your IT policy.

 

Are you sure your proxy does not require a username and password?  Many proxies do but derive your userid from your active directory session.

 

 

Regular Contributor
MrLitany
Posts: 65
Registered: ‎06-13-2011
My Device: mini curve

Re: HttpConnection post via proxyHost

It's not like that i have a link blocked from the Service provider that i need to reach from my code.

 

So i want to add proxy to my httpconnection in order to acheive it,