Re: Http proxy in nsISocketTransportService

Piotr Kuśka <[email protected]>
Newsgroups gmane.comp.mozilla.devel.netlib
Message-ID <[email protected]>
W dniu 2011-12-28 20:41, Eric H. Jung pisze:
> On Wed, Dec 28, 2011 at 5:51 AM, Piotr Kuśka<[email protected]>  wrote:
>
>> I would like to create an nsISocketTransport with an HTTP proxy. The
>> documentation says nsISocketTransportService supports only SOCKS proxies,
>> because they are transparent to upper protocols.
>> I tried to use the method NewChannelFromURIWithProxyFlag**s in
>> nsIIOService2 to create proxied nsIHttpChannel. However, http channels do
>> not allow writing to and reading from the underlying socket upon proxy
>> connect. They send an http request instead.
>> Is there any other way to establish a (secure) tcp connection over http
>> proxy?
>>
>>
> Are you trying to implement
> https://bugzilla.mozilla.org/show_bug.cgi?id=378637 ?
>
> Eric

Nope, I'm trying to get nsISocketTransportService::createTransport to 
work with HTTP proxy (currently it only supports SOCKS proxy) so that it 
is transparent to upper protocols (like Qt does that in QTcpSocket or 
QSslSocket).
_______________________________________________
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.