HTTPX not treating + encoding correctly? #3085
Unanswered
nbourbon
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm sending a get request with the following data in order to check the banking statos of a payment QR Code in Brazil
url = 'https://bankingapi/qrcode?qrcode='
data = '00020101021126360014br.gov.bcb.pix0114+55489962650955204000053039865802BR5925TEREZINHA APARECIDA DEL S6008BRASILIA62070503***63040833'
if I put this data into a get request like this
response = httpx.get(url+data) and I print the response.url I get
https://bankingapi/qrcode?qrcode='00020101021126360014br.gov.bcb.pix0114+55489962650955204000053039865802BR5925TEREZINHA%20APARECIDA%20DEL%20S6008BRASILIA62070503***63040833
as you can see the plus sign + is not being encoded and I'm forced to use the parsing library before passing the data to httpx
I thought the encoding was handled directly by httpx, is there anything I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions