reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

Connection closing when sending requests to a locally hosted server

Open cook-f opened this issue 1 year ago • 4 comments

I've set up a repository with a (hopefully) reproducible example and a brief explanation: https://github.com/nectariner/reqwest_issue_example

I could be doing something horribly wrong but hopefully not Thanks!

cook-f avatar Mar 05 '24 07:03 cook-f

What proxy is http://127.0.0.1:49765 ?

mohe2015 avatar Mar 05 '24 10:03 mohe2015

I'm not sure I understand, how would I find out?

(Maybe worth noting I've also tried with localhost and 127.0.0.1 as well)

@mohe2015

cook-f avatar Mar 05 '24 10:03 cook-f

reqwest is detecting proxies from your operating system. If you don't want that to happen, you can use the builder option .no_proxy().

seanmonstar avatar Mar 05 '24 13:03 seanmonstar

reqwest is detecting proxies from your operating system. If you don't want that to happen, you can use the builder option .no_proxy().

why reqwest doesn't use os system proxy setting? I also found reqwest always use proxy to access localhost (127.0.0.1). Is it a bug?

fragrans avatar Mar 13 '24 02:03 fragrans