RestClient icon indicating copy to clipboard operation
RestClient copied to clipboard

Request headers must contain only ASCII characters

Open sealoyal2018 opened this issue 4 years ago • 2 comments

When I use restclient to simulate login, I need to keep the cookie, but there is a FriendlyName attribute in the cookie returned by the server that contains non-ascii characters, and then the second request will be wrong "Request headers must contain only ASCII characters" image

image

sealoyal2018 avatar Dec 07 '21 14:12 sealoyal2018

Can you try encoding that cookie? That error is handled by UnityWebRequest system 🤔

jdnichollsc avatar Dec 07 '21 15:12 jdnichollsc

Can you paste your code here, so that I may try and reproduce it on my end?

maifeeulasad avatar Dec 12 '21 15:12 maifeeulasad