12

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?
5
  • It looks like HOST is the only required header field Commented Aug 29, 2012 at 22:42
  • possible duplicate of What HTTP response headers are required Commented Oct 10, 2014 at 8:11
  • 3
    Ignore the above comment, I've incorrectly flagged the question as a duplicate. Commented Oct 15, 2014 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. Commented Jan 2, 2015 at 14:20
  • 1
    Possible duplicate of What, at the bare minimum, is required for an HTTP request? for request, stackoverflow.com/questions/4726515/… for response. Commented Feb 28, 2016 at 9:43

1 Answer 1

4

It looks like HOST is the only required header field

Sign up to request clarification or add additional context in comments.

1 Comment

It is only required in version 1.1. 1.0 does not require this.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.