opensubscriber
   Find in this group all groups
 
Unknown more information…

d : dev-tech-network@lists.mozilla.org 28 December 2011 • 11:43PM -0500

Re: Http proxy in nsISocketTransportService
by Piotr Kuśka

REPLY TO AUTHOR
 
REPLY TO GROUP




On 2011-12-28 14:28, Christian Biesinger wrote:
> On 12/28/2011 11:51, Piotr Kuśka wrote:
>> Is there any other way to establish a (secure) tcp connection over http
>> proxy?
>
> No... there is no good way to do that right now. What you can do is to
> just use nsISocketTransport to create a connection to the proxy (if
> necessary with the "ssl" socket type for a secure connection) and
> manually send the CONNECT request.
>
> hope this helps,
> -christian

I've tried this approach already, but it wouldn't work with proxy
authentication (I would have to rewrite the proxy authentication code).
Also, I wouldn't be able to make a connection to an unsecureproxy and
then upgrade it to ssl.
I tried to modify nsHttpChannel, nsHttpTransaction and nsHttpConnection
o achieve the desired goal, but with no success.
_______________________________________________
dev-tech-network mailing list
dev-tech-network@list...
https://lists.mozilla.org/listinfo/dev-tech-network

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.