11

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?
Steven Smethurst
  • 4,495
  • 15
  • 55
  • 92
  • It looks like HOST is the only required header field – Steven Smethurst Aug 29 '12 at 22:42
  • possible duplicate of [What HTTP response headers are required](http://stackoverflow.com/questions/4726515/what-http-response-headers-are-required) – Whymarrh Oct 10 '14 at 08:11
  • 3
    Ignore the above comment, I've incorrectly flagged the question as a duplicate. – Whymarrh Oct 15 '14 at 22:33
  • To answer this question we need to know the request type, http version, role of the application, capabilities of the application etc. For example if the client does not support persistent connections and the http version is 1.1 the Connection header is required. If the application is a proxy and is forwarding a request the Via header is required. – Martin Brown Jan 02 '15 at 14:20
  • 1
    Possible duplicate of [What, at the bare minimum, is required for an HTTP request?](http://stackoverflow.com/questions/6686261/what-at-the-bare-minimum-is-required-for-an-http-request) for request, http://stackoverflow.com/questions/4726515/what-http-response-headers-are-required for response. – Ciro Santilli OurBigBook.com Feb 28 '16 at 09:43

1 Answers1

4

It looks like HOST is the only required header field

Steven Smethurst
  • 4,495
  • 15
  • 55
  • 92