internet Web MOC Network MOC


The HTTP protocol is based on requests and responses, consisting of a header and body.

Requests

  • GET: Retrieves a specified resource
  • HEAD: Retrieves only metadata for specified resource, rare
  • POST: Sends data to web server without response
  • PUT: Ask web server to store data, rare
  • DELETE: Deletes specified resource

Response

The response header contains metadata about the request and the response body contains data.

  • 200: Ok, I will provide you with the answer to this request
  • 302: Found, but redirect
  • 404: File not found
  • 500: Internal server error
HTTP CodeMeaning
100Continue
200OK
202Accepted
301Moved Permanently
302Found, but Redirect
400Bad Request
401Unauthorized
403Forbidden
404Not Found
408Request Timeout
500Internal Server Error
502Bad Gateway
503Sevice Unavailable
504Gateway Timeout

HTTPS

The HTTPS protocol uses both symmetric and asymmetric encryption. The SSL certificate is used for asymmetric encryption to create a symmetric key for faster encryption.