====== HTTP headers (REST) ====== ===== GET ===== === Request === GET /path/resource HTTP/1.1 Host: server.com Accept: application/xml, text/plain === Response === HTTP/1.1 200 OK Date: Wed, 20 Oct 2004 00:20:40 GMT Server: Apache Last-Modified: Tue, 19 Oct 2004 23:56:04 GMT Content-Type: text/html sample.html

Here is sample.html.

===== POST ===== === Request === POST /path/resource HTTP/1.1 Host: server.com Content-Type: application/xml === Response === HTTP/1.1 201 Created Date: Sat, 23 Oct 2004 17:13:33 GMT Server: Apache Location: http://path/resource/new Content-Type: application/xml ===== PUT ===== === Request === PUT /path/resource HTTP/1.1 Content-Type: application/xml === Response === HTTP/1.1 201 Created Date: Thu, 21 Oct 2004 23:43:50 GMT Server: Apache ===== DELETE ===== === Request === DELETE /path/resource HTTP/1.1 Host: server.com === Response === HTTP/1.1 204 No Content Date: Wed, 20 Oct 2004 22:15:42 GMT Server: Apache