proxy-chain icon indicating copy to clipboard operation
proxy-chain copied to clipboard

Proxy headers

Open theArina opened this issue 3 years ago • 7 comments

How can I add proxy headers to upstream proxy ?

theArina avatar Mar 30 '21 09:03 theArina

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.

jancurn avatar Mar 30 '21 09:03 jancurn

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

theArina avatar Mar 30 '21 09:03 theArina

@theArina has solution ?

dmitryshelomanov avatar Jul 19 '21 12:07 dmitryshelomanov

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

theArina avatar Jul 19 '21 12:07 theArina

@theArina any docs ?

dmitryshelomanov avatar Jul 28 '21 17:07 dmitryshelomanov

@dmitryshelomanov, for a fork ?

theArina avatar Jul 28 '21 18:07 theArina

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

theArina avatar Jul 29 '21 06:07 theArina