HTTP spec overview
Tuesday, 31. January 2006, 08:38:18
http://www.hallvord.com/pc/http-cheat-sheet.htm
Tuesday, 31. January 2006, 08:38:18
On being a user agentAnniversary![]()
You must be logged in to write a comment. if you're not a registered member, please sign up.
Never attribute to stupidity that which can be adequately explained by deadlines
Hi F_V, I'm not absolutely sure I see the use case for detecting ...
shaktiIIIgta: how are things now? Some new Hotmail-related stuff ...
I see that Opera also returns an input element if you have merel ...
im using Opera 9.51 and cant see the full version of hotmail wor ...
I would appreciate a userjs to solve the most common mistakes fr ...
finally! I was waiting for this contest since the beginining of ...
By Frenzie, # 31. January 2006, 10:49:34
I should warn you that I'm not an expert on HTTP, I think I generally got things right but consult the spec if in doubt..
By hallvors, # 31. January 2006, 14:26:20
Actually, it's better to omit the extension from the link completely. This link works, too:
http://www.hallvord.com/pc/http-cheat-sheet
(If there are several files with different extensions available, content negotiation happens.)
By feldgendler, # 1. February 2006, 04:04:27
.htm over .html is just a habit.
My site is configured for content negotiation as you just found out, but I've learnt the hard way NOT to rely on it - the algorithm seems a bit complicated and in practice Apache 1.3 is thoroughly confused by my old habit of naming files index.js or index.css along with index.htm . Depending on the UA's accept headers I've seen Apache serve pure CSS or JavaScript instead of the expected HTML page. Perhaps it's my fault for using similar file names but hey, the tool should cope with my quirks and not the other way around.
Another Apache CN quirk is that if you have a directory and a file with the same name, redirection to the directory always wins. So if you have
/books/
/books.en.htm
/books.no.htm
and request /books you're sent to the directory without any content negotiation.
Even when content-negotiation works it causes problems - because I tried to use it for language negotiation and Apache would often not be able to decide what language to send - even if only one file was available! Hence, it would show a 406 error page, and IE would show it's friendly error page as if it was a 404. Well, blame IE but seriously - I can't have a site where IE tells visitors half of the pages are not found!
Given all these issues I usually keep extensions on my links, thank you very much.
By hallvors, # 2. February 2006, 15:27:05
By qicaispace, # 29. May 2006, 03:40:31