-
Notifications
You must be signed in to change notification settings - Fork 16
remove encode/decode a cookie values #16
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
base: master
Are you sure you want to change the base?
remove encode/decode a cookie values #16
Conversation
ea979f2
to
7506ce9
Compare
Hi @RubtsovAV Please can you give example of what exactly fails? |
For example, the curl get response with that header:
In the cookie jar file, you will get that:
How you can see, the cookie value is not urlencoded. The CURL does not do this. On the next request (after parse and generate cookie file), you will get that:
And here we get a wrong cookie value. The CURL will send the cookie value as it is - without urldecode. This PR will fix it. |
I'm 100% sure. You can check it yourself. |
cookie.php
setcookie.php
When you launch the cookie.php, you will see:
CURL does not urlencode the value of a cookie. |
I dont tell you are wrong, but I need to know what was wrong, with both of your case and the case in #14. If we want to fix the issue correctly we need to fully understand both cases, what was wrong and why. Because if we come back to the previous behaviour and if other persons still open an issue because they need to url encode cookie values we will do that indefinitely. The issue might be of any nature, it can be due different curl version, or it can be due to something we dont consider at this moment. For the moment I need to test. |
I understand, I just tell more information about this issue: all what I know and how I test it. I hope it will help to understand the problem sooner. |
There are no clear rules on encoding for coookies, the commonly accepted solution is apparently to not encode anything appart colons semicolons and whitespaces. I need to make sure before going further |
It breaks a cookie values.
Encoding should be on a client side.