Fre*_*ind 2 curl httpresponse chunked setcookie
我发现有时浏览器无法从我的网站上获取cookie,所以我curl用来检查标题,信息是:
C:\Documents and Settings\jack>curl http://localhost -I
HTTP/1.1 200 OK
Expires: Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: SCALAEYE_SESSION="a57cf8ebdfc379da91ad17d1d1eac706c25ae4c3-%3Citems%3E%3C%2Fitems%3E";Path=/
Set-Cookie: SCALAEYE_FLASH="%3Citems%3E%3C%2Fitems%3E";Path=/
Content-Length: 121665
Server: Jetty(6.1.26)
Run Code Online (Sandbox Code Playgroud)
但是当我使用浏览器IE6并Firefox访问时,标题是:
Response Headersview source
Date Fri, 08 Apr 2011 08:48:09 GMT
Transfer-Encoding chunked
Server Jetty(6.1.26)
Run Code Online (Sandbox Code Playgroud)
你可以看到没有Set-Cookie标题,这会产生问题.我的服务器是Jetty 6.1.26.为什么他们的回答不同?哪里错了?以及如何解决它?