You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET / HTTP/1.1
host: 127.0.0.1:9055
user-agent: mint/1.5.1
When using hackney, this seems to work:
# Set up the proxy optionsproxy_opts=[proxy: {"127.0.0.1",9055}]# Make the request using hackney:hackney.request(:get,"http://example.com",[],"",proxy_opts)
Request:
GET / HTTP/1.1
Host: example.com
User-Agent: hackney/1.20.1
(HTTPoison also works, HTTPoison.get("http://example.com", [], [{:proxy, string_url()}]))
Reading:
https://hexdocs.pm/mint/Mint.HTTP.html#connect/4-proxying
A minimal example, using mitmproxy:
The raw request seems to be:
When using hackney, this seems to work:
Request:
(HTTPoison also works,
HTTPoison.get("http://example.com", [], [{:proxy, string_url()}])
)Mint.UnsafeProxy:
The text was updated successfully, but these errors were encountered: