Skip to content

Proxy option not working #462

@shellking4

Description

@shellking4

I have this curl request

curl -x "http://proxy-server.com:8001" -k "https://httpbin.org/ip"

The curl request is actually going through the proxy server and I'm getting at each hit a new ip address.

But when I try with HTTPoison it's not working as expected.

I tried these codes

HTTPoison.get!("https://www.httpbin.org/ip", [], [proxy: {"http://proxy-server.com"}])

HTTPoison.get!("https://www.httpbin.org/ip", [], [{:proxy, "http://proxy-server.com"}])

What am I doing wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions