Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Closed
geeknik opened this issue Dec 23, 2022 · 4 comments
Closed

httpx 1.2.5 ignores -proxy when -unsafe used #913

geeknik opened this issue Dec 23, 2022 · 4 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

@ehsandeep
Copy link
Member

proxy is not supported with unsafe mode.

@projectdiscovery projectdiscovery locked and limited conversation to collaborators May 28, 2024
@ehsandeep ehsandeep converted this issue into discussion #1729 May 28, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

3 participants