httpx icon indicating copy to clipboard operation
httpx copied to clipboard

httpx 1.2.5 ignores -proxy when -unsafe used

Open geeknik opened this issue 2 years ago • 3 comments

httpx version:

1.2.5

Current Behavior:

httpx 1.2.5 ignores -proxy when -unsafe is used.

Expected Behavior:

httpx should respect -proxy regardless of -unsafe usage.

Steps To Reproduce:

  • setup a proxy to listen on 127.0.0.1:3128
  • httpx -title -sc -td -unsafe -proxy http://127.0.0.1:3128 -u http://example.com

geeknik avatar Dec 23 '22 03:12 geeknik

@geeknik http proxy is not yet supported by rawhttp as most proxies would reject non-rfc compliant requests. Anyway, the socks5 proxy should work fine. We can indeed attempt to implement a best-effort proxy use for rawhttp, but there is no guarantee that the proxy would reject the request. Do you have any particular use case for this functionality?

Mzack9999 avatar Jan 03 '23 09:01 Mzack9999

Do you have any particular use case for this functionality?

Yes, but it's part of an upcoming blog post and I'd rather not publicly post the details until I can post the blog. 👍🏻 Feel free to follow-up on Discord if necessary. 😃

geeknik avatar Jan 03 '23 15:01 geeknik

Depends on https://github.com/projectdiscovery/rawhttp/issues/85

Mzack9999 avatar Jan 25 '23 07:01 Mzack9999

proxy is not supported with unsafe mode.

ehsandeep avatar May 28 '24 09:05 ehsandeep