dynamic.xkcd.com doesn't handle HTTP HEAD method

Need the mods or admins to do something for you? Post here. Read the "About" post first.

Moderators: Moderators General, Prelates, Magistrates

10nitro
Posts: 192
Joined: Mon Nov 03, 2008 8:46 pm UTC
Contact:

dynamic.xkcd.com doesn't handle HTTP HEAD method

Postby 10nitro » Fri Jul 08, 2011 8:33 pm UTC

After having some weird caching issues with dynamic.xkcd.com, I popped open urxvt to use curl to check the what caching headers were being sent. What I saw was even weirder:

Code: Select all

$ curl -I http://dynamic.xkcd.com/random/comic/
HTTP/1.1 404 Not Found
Connection: close
Content-Length: 277
Content-Type: text/html
Date: Fri, 08 Jul 2011 20:23:43 GMT
Server: Happstack/0.4.1


So then I did the requests through netcat, and discovered that it's not properly responding to the HEAD method.

Code: Select all

$ nc -c dynamic.xkcd.com 80
GET /random/comic HTTP/1.1
Host: dynamic.xkcd.com

HTTP/1.1 307 Temporary Redirect
Connection: close
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
Date: Fri, 08 Jul 2011 20:20:38 GMT
Location: http://xkcd.com/577/
Server: Happstack/0.4.1
Set-Cookie: seen_comics="[577]";Max-Age=604800000000;Path=/;Version="1"

$ nc -c dynamic.xkcd.com 80
HEAD /random/comic HTTP/1.1
Host: dynamic.xkcd.com

HTTP/1.1 404 Not Found
Connection: close
Content-Length: 277
Content-Type: text/html
Date: Fri, 08 Jul 2011 20:21:01 GMT
Server: Happstack/0.4.1


I still haven't figured out the caching issue, but I assume it's on my end.
~ Luke Shumaker
FRC1024 Programmer
IT technician, GNU/Linux admin, comp. security guy
Eagle Scout
http://lukeshu.ath.cx

Return to “Site/Forum issues”

Who is online

Users browsing this forum: No registered users and 4 guests