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

Reply via email to