Replies: 3 comments
-
|
https://lostisland.github.io/faraday/#/customization/proxy-options Seems like the |
Beta Was this translation helpful? Give feedback.
-
|
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.
-
|
@Gambitboy Sorry I just noticed this thread! Did you manage to make this work? I looked at the Another way to make this work could be to simply add basic auth to the proxy address. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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