You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
httpx/httpx/_content.py
Lines 137 to 150 in a8dd079
Here, we are encode a data to url-encoded data via
urlencode
function inurllib.parse
But we can't specify which encoding to urlencode in (The default urlencode's encoding is
UTF-8
.)We need to make an option for urlencode for some websites with other charset.
request.post
method automatically recognize data's encoding when we encode the dict data, but httpx can't.Example Server / Client
Server (Written in PHP)
Client
Beta Was this translation helpful? Give feedback.
All reactions