-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Run requests through a SOCKS proxy #490
Comments
Ultimately the question is, how to use Reqwest through a SOCKS proxy: |
Thanks, this was helpful. From your lead, I then found https://docs.rs/reqwest/latest/reqwest/index.html#proxies which states that the usual
edit: Oh, I had to add the [features]
default = ["reqwest/default-tls"]
socks = []
gaggle = ["nng"]
rustls-tls = ["reqwest/rustls-tls", "tokio-tungstenite/rustls-tls"] |
It looks like you have to specify the protocol differently to route DNS, see the update to the example in the codebase in this issue: |
W00t, I got SOCKS working and I understand Features a bit more now, I had to enable it ON reqwest, like so: [dependencies]
goose = "^0.16"
tokio = "^1.12"
goose-eggs = "0.4"
rand = "0.8.5"
reqwest = { version = "0.11.10", features = ["socks"]} source: https://docs.rs/reqwest/latest/reqwest/index.html#optional-features and https://doc.rust-lang.org/stable/cargo/reference/features.html#the-features-section |
Perhaps you can summarize the steps required in the Goose documentation, adding to this page? |
Actually, it would make more sense to put it in this section, perhaps adding a new sub-page: |
This is me rubber ducking for now. I need to figure out how to run the requests through a SOCKS proxy. I gather the http lib rust uses supports this. I searched https://book.goose.rs/?search=proxy and didn't see anything so once I figure it out, I'll post here and maybe we can get it documented.
The text was updated successfully, but these errors were encountered: