Skip to content
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

httpx 1.2.5 ignores -proxy when -unsafe used #913

Open
geeknik opened this issue Dec 23, 2022 · 3 comments
Open

httpx 1.2.5 ignores -proxy when -unsafe used #913

geeknik opened this issue Dec 23, 2022 · 3 comments
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all.

Comments

@geeknik
Copy link
Contributor

geeknik commented Dec 23, 2022

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 geeknik added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Dec 23, 2022
@Mzack9999 Mzack9999 added the Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all. label Dec 28, 2022
@Mzack9999 Mzack9999 self-assigned this Jan 3, 2023
@Mzack9999
Copy link
Member

@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?

@geeknik
Copy link
Contributor Author

geeknik commented Jan 3, 2023

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. 😃

@Mzack9999
Copy link
Member

Mzack9999 commented Jan 25, 2023

Depends on projectdiscovery/rawhttp#85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all.
Projects
None yet
Development

No branches or pull requests

2 participants