Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the required HTTP headers fields

Tags:

http

header

I know that any HTTP request will require the following headers fields .

  • HOST

I found this document that describes some of the HTTP Header fields but does not have a list of the required ones.

My questions are;

  • What other headers fields are required?
  • What are the suggested header fields?
like image 780
Steven Smethurst Avatar asked Aug 09 '12 18:08

Steven Smethurst


People also ask

What are the required HTTP headers?

Common Response Headers The first line of the response is mandatory and consists of the protocol ( HTTP/1.1),response code (200)and description (OK).

What does the HTTP header field Content Type explain?

The Content-Type header is used to indicate the media type of the resource. The media type is a string sent along with the file indicating the format of the file. For example, for image file its media type will be like image/png or image/jpg, etc. In response, it tells about the type of returned content, to the client.


1 Answers

It looks like HOST is the only required header field

like image 129
Steven Smethurst Avatar answered Oct 25 '22 14:10

Steven Smethurst