W dniu 2012-01-03 10:18, Honza Bambas pisze:
> On 12/28/2011 11:51 AM, Piotr Kuśka 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 NewChannelFromURIWithProxyFlags 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?
>> _______________________________________________
>> dev-tech-network mailing list
>>
dev-tech-network@list...>>
https://lists.mozilla.org/listinfo/dev-tech-network>>
> You may try use this API:
>
http://hg.mozilla.org/mozilla-central/annotate/44d992ccc97a/netwerk/protocol/http/nsIHttpChannelInternal.idl#l181>
>
> Depends on your needs/scenario but when the target server returns 101
> your callback may grab the open underlying socket transport (already
> SSL'ed) and you don't even need to modify the mozilla core code.
> -hb-
I'm afraid this is not an option because the target server starts data
transmission once the TCP connection is established. Thus it is
impossible to get the 101.
_______________________________________________
dev-tech-network mailing list
dev-tech-network@list...https://lists.mozilla.org/listinfo/dev-tech-network
opensubscriber is not affiliated with the authors of this message nor responsible for its content.