What hidden features of HTTP do you think are worth mentioning?
By hidden features I mean features that already are part of the standard but widely rath
Status codes :
http://www.domain.invalid/index.php?id=44
is called, if the query (id=44
) couldn't return ressource, why not return a status code 404?http://www.domain.invalid/index.php?id=foo
is called whereas id
only accepts integers, why not return a status code 400?Yes, status codes seems to be a kind of secret functionality of HTTP to some web developers... But I wonder if the most occult of all the "features" of this protocol isn't its RFC!
Trailer (in contrast to Header)
Obvious answer: PUT, DELETE, TRACE, OPTIONS, CONNECT methods
Most people know about the GET and POST methods because that's what they use when building forms. Browsers also use HEAD a lot. The other methods are much less well-known; they are mostly used by more specific applications.
ReST tries to push HTTP to its limits as an interface protocol.
It's not a hidden feature, but from looking at well-defined ReST APIs one can get quite a nice grip on how HTTP is meant to work and find wonderful examples of what can be achieved with simple combination of HTTP methods, status codes and headers to and fro.
The fact that referrer was misspelled and it was decided that the misspelling should be kept.
The protocol allows you to define your own custom-fields. These can be used to carry other information if you don't want to use cookies for it.