Wednesday, February 21, 2007

HTTP Requests & Responses

Requests

  • GET: Retrieves the resource identified by the request URL
  • HEAD: Returns the headers identified by the request URL
  • POST: Sends data of unlimited length to the Web server
  • PUT: Stores a resource under the request URL
  • DELETE: Removes the resource identified by the request URL
  • OPTIONS: Returns the HTTP methods the server supports
  • TRACE: Returns the header fields sent with the TRACE request

Responses

  • 404: The requested resource is not available
  • 401: The request requires HTTP authentication
  • 500: An error occurred inside the HTTP server preventing it from fulfilling the request
  • 503: The HTTP server is temporarily overloaded and unable to handle the request

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/HTTP.html

No comments: