On Wed, Dec 28, 2011 at 4:43 PM, Piotr Kuśka <[email protected]> wrote:
> 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.

True, authentication is a problem. You may want to look at the
websocket code, which has solved that problem too. Upgrading to SSL
would actually work, if you use the "starttls" socket type and then
call nsISSLSocketControl::StartTLS once you want to initiate SSL. You
can get the socket control object from
nsISocketTransport::GetSecurityInfo.

-christian
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to