apify / proxy-chain

Node.js implementation of a proxy server (think Squid) with support for SSL, authentication and upstream proxy chaining.
https://www.npmjs.com/package/proxy-chain
Apache License 2.0
804 stars 138 forks source link

Passing custom http agent on every prepareRequestFunction #379

Closed vikasg603 closed 1 year ago

vikasg603 commented 1 year ago

I know we can pass a custom HTTP server on configuration, But instead, I want to give a custom HTTP agent or any way-to-pass agent option such as ciphers to solve problems like TLS fingerprinting https://httptoolkit.com/blog/tls-fingerprinting-node-js/ Is there any way I can pass a custom HTTP agent?

jirimoravcik commented 1 year ago

Hello,

I believe you cannot do this via proxy-chain. HTTP agent should be defined on client's side. For example, if you use axios in your script, you should specifiy the HTTP agent in axios configuration and then make the request. (e.g. see https://axios-http.com/docs/req_config and httpAgent option)