HTTP
- Hypertext Transfer Protocol is used to share and request information
HTTP Requests
HTTP Verbs
- GET
- Retrieves data from the server
- Idempotent
- Includes sensitive information in the URI, which can be logged
- PUT
- Updating an existing resource or create a new resource of it doesn't exist
- Idempotent
- POST
- Creating a new resource
- Not idempotent (multiple identical requests results in different outcomes)
- Does not include form data in the request URI; instead, form data is encoded in a URL, and calls a function on the server to process the information
- HEAD
- Retrieving metadata about a source without fetching the actual data
1. HTML standard prevents HEAD requests from containing message body/form data
2. Typically only used to extract header information or test HTML links
- Idempotent
HTTP Response Codes
- 1xx - Informational
- The request was received, continuing process
- 2xx - Successful
- The request was successfully received, understood, and accepted
- 3xx - Redirection
- Further action needs to be taken in order to complete the request
- 4xx - Client Error
- The rest contains bad syntax or could not be fulfilled
- 5xx - Server Error
- The server failed to fulfill an apparently valid request
OSI or TCP/IP Layer
CCNA Exam Topic
Contributors
Sources