ブラウザが自分のWebサイトから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)
しかし、ブラウザを使用IE6
しFirefox
てアクセスすると、ヘッダーは次のようになります。
Response Headersview source
Date Fri, 08 Apr 2011 08:48:09 GMT
Transfer-Encoding chunked
Server Jetty(6.1.26)
Set-Cookie
問題のあるヘッダーがないことがわかります。私のサーバーはJetty 6.1.26
です。なぜそれらは異なる応答ですか?どこが間違っているのですか?そしてそれを修正する方法は?