Media type for HTTP
The Web server appends a MIME type to all HTTP object data, and when the browser receives the data, it determines how the data is processed based on the MIME type.
Common MIME-type classifications:
- Text document in text/html:html format
- Text/plain: Plain ASCII text document
- Pictures of image/jpeg:jpeg format
- Pictures of image/gif:gif format
- Video/quicktime:apple's QuickTime movie is
- application/vnd.ms-powerpoint:ppt Format Files
URI (Uniform Resource Identifier)
URIs are categorized as URLs (Uniform Resource Locators) and urns (Uniform Resource names), and most of the URIs are URLs at this time.
The URL is divided into three parts: HTTP protocol (\ http) + server's Internet address (e.g., www.joes-hardware.com) + resource location (e.g.,/specials/saw-blade.gif)
Common HTTP methods
- GET: Send a named resource to the client from the server
- Put: Store data from the client to the server's named resource
- Delete: Remove named resources from the server
- POST: Sending client data to a program on the server
- HEAD: Sends only the HTTP header in the named resource corresponding
Status code
The HTTP response header will carry the status code.
Common Status Codes:
- 200:ok
- 302: Redirect
- 404: No Resources found
HTTP basic point of knowledge