-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[HttpClient] fix documentation of Cookies #19947
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
Comments
@infinitum11 I think I'm missing something in your issue report. The format that you are proposing ( |
@javiereguiluz Technically they are the same, but semantically they differ. Let me explain. When sending a cookie from a server to a client, you use the However, when sending a cookie from a client to a server, you use the So, when you set additional HTTP headers this way:
the 6 (six) cookies are sent from the client to a server: |
@infinitum11 thanks a lot for the detailed explanation. It's clear to me now. I created #19968 to try to fix this. Thanks! |
HttpClient is used for sending HTTP requests, but not for responding to HTTP requests, so the following lines are invalid.
PHP parses and populates the $_COOKIE array as follows which is wrong:
So, one of the variances is to use the following syntax:
See:
The text was updated successfully, but these errors were encountered: