Re: Http proxy in nsISocketTransportService

Piotr Kuśka <[email protected]>
Newsgroups gmane.comp.mozilla.devel.netlib
Message-ID <[email protected]>
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
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.