apify / proxy-chain

Node.js implementation of a proxy server (think Squid) with support for SSL, authentication and upstream proxy chaining.

Home Page:https://www.npmjs.com/package/proxy-chain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proxy headers

theArina opened this issue · comments

commented

How can I add proxy headers to upstream proxy ?

I assume you'd like to add extra headers to the HTTP CONNECT method, right? Currently, this is not possible. See HandlerTunnelChain implementation, PRs welcome.

commented

@jancurn, I'll take a look at this, thanks.

@theArina has solution ?

commented

@dmitryshelomanov, yeah, we made a fork. take a look, but we also added some enrichments that we needed.

commented

@dmitryshelomanov, for a fork ?

commented

@dmitryshelomanov, well, shortly you just kinda return this
{ requestAuthentication: false, upstreamProxyUrl, proxyHeaders };
instead of this
{ requestAuthentication: false, upstreamProxyUrl };
from the prepareRequestFunction
(but not necessarily)