In apache or php, how do I set page cookies? Curl: A website named France Weather Network. The returned message is Merci & nbsp; d' accepter & nbsp; les & nbsp; cookiesPour & nbsp; accepter & nbsp; les & nb apache or php. how can I set cookies on the page?
Curl: A website named France Weather Network.
The returned information is
Merci d 'accepter les cookies
Pour accepter les cookies:
Sur Internet Explorer: Outils> Options Internet> Confidentialit é> avancé
Sur Firefox: Outils> Options> Vie privé e> Cookie> Accepter les cookies
Nous vous informons que vous pouvez vous opposer à l 'enregistrement de ces cookies en guest ant votre ordinateur selon les modalité s é taillé es sur le site de la CNIL. (http://www.cnil.fr)
The general meaning is:
Thank you for accepting cookies.
To accept cookies:
Internet Explorer: Tools> Internet Options> Privacy> Advanced
Go to Firefox: Tools> Options> Privacy> Cookies> accept Cookies
We will tell you that you may oppose cookie configuration for detailed registration on the CNIL website of your computer. Http://www.cnil.fr)
CURLOPT_HEADER, true, return the following information.
HTTP/1.1 302 Found Date: Thu, 24 Jan 2013 16:09:14 GMT Server: Apache Set-Cookie: jknch=hcnkj; path=/; domain=meteofrance.com Location: http://token.meteofrance.com/?u=%68%74%74%70%3A%2F%2F%66%72%61%6E%63%65%2E%6D%65%74%65%6F%66%72%61%6E%63%65%2E%63%6F%6D%2F%66%72%61%6E%63%65%2F%61%63%74%75%2F%61%63%74%75%3F%70%6F%72%74%6C%65%74%5F%69%64%3D%39%30%31%33%36%26%64%6F%63%75%6D%65%6E%74%5F%69%64%3D%32%37%33%35%34&s=%73%69%6D%2D%70%6F%72%74%61%69%6C&x=%DC%45%F1%A6%56%AD%A9%DE Content-Length: 0 Content-Type: text/html HTTP/1.1 302 Found Date: Thu, 24 Jan 2013 16:09:19 GMT Server: Apache Location: http://france.meteofrance.com/NoCookie.htm Content-Length: 0 Connection: close Content-Type: text/html HTTP/1.1 200 OK Date: Thu, 24 Jan 2013 16:09:20 GMT Server: Apache ETag: "8613ee-89f-4d0d0d2028c80" Accept-Ranges: bytes Xcache: Version 1.2 for Apache 2.2 Last-Modified: Thu, 24 Jan 2013 15:39:23 GMT Content-Length: 2207 Content-Type: text/html
I would like to ask, is this function set in apache or php? Must the client accept cookies to continue browsing?
------ Solution --------------------
At the end of this post, xuzuning edited and explained the returned header at 09:51:15.
HTTP/1.1 302
Found Date: Thu, 24 Jan 2013 16:09:14 GMT
Server: Apache
Set-Cookie: jknch = hcnkj; path =/; domain = meteofrance.com
Location: http://token.meteofrance.com /? U = % 68% 74% 74% 70% 3A % 2F % 2F % 66% 72% 61% 6E % 63% 2E % 6D % 65% 65% 74% 6F % 65% 66% 6E % 72% 2E % 61% 2E % 63% 6F % 6D % 2F % 66% 72% 61% 6E % 63% 65% 2F % 61% 63% 74% 2F % 75% 61% 63% 74% 3F % 75% 6F % 70% 6C % 72% 5F % 74% 3D % 39% 30% 31% 33% 36% 26% 64% 6F % 63% 75% 6D % 65% 6E % 74% 5F % 69% 3D % 64% 32% 37% 33% 34 & s = % 35% 6D % 2D % 73% 6F % 72% 74% 61% 69% 6C & x = % DC % 45% F1 % A6 % 56% AD % A9 % DE
Content-Length: 0
Content-Type: text/html
HTTP/1.1 302
Found Date: Thu, 24 Jan 2013 16:09:19 GMT
Server: Apache
Location: http://france.meteofrance.com/NoCookie.htm
Content-Length: 0
Connection: close
Content-Type: text/html
HTTP/1.1 200 OK