Httpx is not encoding "%" symbol while sending requests #3094
Unanswered
heysarthak
asked this question in
Potential Issue
Replies: 2 comments 6 replies
|
Could you be more specific and demonstrate the actual code? |
6 replies
|
httpx treats If you want the byte from urllib.parse import quote
httpx.get("https://example.com/search", params={"q": "ngi%abc.com"})
# params are encoded, so this becomes q=ngi%25abc.com
# for a path segment:
path = quote("ngi%abc.com", safe="")
httpx.get(f"https://example.com/{path}")Do not put a raw |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions