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 is not encoding "%" symbol while sending requests #3140
Comments
Tunglies
added a commit
to Tunglies/httpx
that referenced
this issue
Mar 14, 2024
3 tasks
Tunglies
added a commit
to Tunglies/httpx
that referenced
this issue
Mar 14, 2024
Add parsing symbol '%s' test
Tunglies
added a commit
to Tunglies/httpx
that referenced
this issue
Mar 15, 2024
Add parsing symbol '%s' test rewrite fn::_urlparse::is_safe
You can manually encode the query parameters in Python using the from urllib.parse import quote
import httpx
query_param = "ngi%abc.com"
encoded_query_param = quote(query_param)
url = f"https://example.com/search?q={encoded_query_param}"
resp = httpx.get(url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #3094
Originally posted by heysarthak February 14, 2024
Hi team,
I am ussing httpx plugin, while sending httpx query "ngi%abc.com" .
ideally "%" symbol should be encoded as "%25" but it is still sending as the same "%".
can we please have a fix for this.
The text was updated successfully, but these errors were encountered: