federicotdn / verb

Organize and send HTTP requests from Emacs
https://melpa.org/#/verb
GNU General Public License v3.0
545 stars 20 forks source link

Verb is not using proxy #8

Closed gopar closed 4 years ago

gopar commented 4 years ago

Hey! Thanks for the awesome package.

One thing I've noticed is that when the proxy is set, it won't use it. I verified by hitting https://api.ipify.org?format=json when the proxy is configured and getting a diff ip besides the proxy.

I've configured the proxy to be something like the following

(setq verb-using-proxy "http://user:pass@0.0.0.0:8080")

Any ideas?

Also, any way to configure the use of proxy in the org file like template ? Thanks!

federicotdn commented 4 years ago

Hey @gopar, thanks for trying that out. I have to admit that I added the proxy variable very early on, without testing it. Now that I've tested it with a local proxy I've realized it doesn't really work as I thought it would. I believe the correct way is this one: https://www.gnu.org/software/emacs/manual/html_node/url/Proxies.html. Please test if that works for you.

What I'll do is remove the verb-using-proxy variable (as it doesn't really do anything), and add that link to the docs. I've tested setting url-proxy-services as described there and it worked correctly.

Also, I'm not sure how HTTP proxies are supposed to work with HTTPS traffic, or how Emacs handles that specifically. So that could be a problem.

Next up would be specifying proxies per-request, but I think that could be much more complicated. I'll look into that in the future if I can.

federicotdn commented 4 years ago

Hey @gopar, any news on this? Could you get it to work with your proxy?

gopar commented 4 years ago

Hey, wasn't able to get it to work since my proxy requires credentials and figure out how to get it right

federicotdn commented 4 years ago

Thanks for testing this. Since this project depends on url.el, the only thing I can do for the moment is point at https://www.gnu.org/software/emacs/manual/html_node/url/Proxies.html.