Replies: 2 comments
-
https://lostisland.github.io/faraday/#/customization/proxy-options Seems like the |
Beta Was this translation helpful? Give feedback.
0 replies
-
So I've tried it like this as well. connection = Faraday.new(
url: 'destination_url_here',
proxy: {
uri: proxy_ip_here,
user: username,
password: password
},
ssl: { verify: false }
) do |f|
f.adapter Faraday.default_adapter
end
connection.get('/') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been trying for a while but I can't seem to get Faraday working with a reverse proxy that has basic auth enabled.
Here is my code snippet using Net::HTTP:
This example works, I'm doing a simple GET request to the root of my destination url.
Here is one of my attempts at using Faraday:
This example gives me a 401 on the reverse proxy itself. I've tried adding the basic auth directly in the header as well.
I've also tried adding the username and password inside the proxy url.
Anyone can help me with this?
Beta Was this translation helpful? Give feedback.
All reactions