Question - What are the core components of an HTTP request?
Answer -
Following are the five core components of an HTTP request:
- HTTP methods: It is a set of request methods used to perform needed action for a given resource (GET, PUT, POST, and DELETE).
- Uniform Resource Identifier (URI): It is a kind of address that describes the resource.
- HTTP Version: It specifies the version of the HTTP. For example HTTP v1.1
- Request Headers: It specifies the content type and content length of the request. For example: Content-type: application/ JSON, Content-Length: 511
- Payload: It is used to specify the Request Body that includes message content.