Google News
logo
Web Services - Interview Questions
What are the core components of the HTTP request and HTTP response?
HTTP request has following 5 major components :
 
Verb   : Indicate HTTP methods like GET, PUT, POST, etc
URI    : Identifies the resource on server
HTTP Version  : Indicates version.
Request Header : Contains metadata like client type, cache settings, message body format, etc for HTTP request message.
Request Body : Represents content of the message.


HTTP response has following 4 major components :
 
Status/Response code  :  Indicates the status of the server for requested resource.
HTTP version  :  Represents HTTP version.
Response Header :  Consists of metadata like content length, content type, server length, etc for HTTP response message.
Response Body :  Represents response message content.
Advertisement