http_req icon indicating copy to clipboard operation
http_req copied to clipboard

Proxy support

Open xen0n opened this issue 5 years ago • 2 comments

It seems the library directly manages TCP connections, thus is unaware to proxies.

It would be nice to support making connections through proxy, ideally respecting environment variables such as https_proxy or socks_proxy like cURL does. This would make http_req usable in many corporate networks.

xen0n avatar Mar 23 '20 05:03 xen0n

Hi, I wanted to relaunch the issue. Can we use the proxy with the library? If not, did we have an alternative to do that?

xdm67x avatar Feb 06 '23 17:02 xdm67x

Simple POC to use HTTP/HTTPS proxy https://github.com/adrien-jeser-doctolib/http_req/tree/poc-proxy

adrien-jeser-doctolib avatar Feb 07 '23 17:02 adrien-jeser-doctolib