>> yep, such a crazy HTTP proxy that intercepts one and only one host and is >> completely transparent for anything else, including any real proxy if it >> is set. Would you please recommend a direction to dig into? > > As I recall, proxies can be chained. See nsIProtocolProxyService? That > lets you filter the list or proxies based on the URI. >
Well, I checked how nsProtocolProxyService works. Seems it's possible to intercept access to a particular host or URL and direct the channel to the proxy. Protocol's channel will connect to the proxy's host/port and proxy will have to respond. Great so far. But I did not find a way on how to intercept URL using nsProtocolProxyService without creating any listening sockets. Looks like it's not possible to intercept protocol channels in order to supply my own streams without intercepting the protocols themselves and it's a bit tricky. Regards. _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
