Curriculum
Course: Cyber Security
Login

Curriculum

Cyber Security

Text lesson

HTTP Response Headers

In response to this request, the server will return headers along with the content. Below are examples of the headers you might see:

HTTP/1.1 200 OK
Content-Type: text/html
Set-Cookie: <cookie value>
<website content>

The response header and content dictate what will be displayed in the browser. The HTTP response headers are explained as follows:

Header

Explanation

HTTP/1.1 200 OK

The HTTP response code, which is explained in detail in the HTTP Response Codes section.

Content-Type: text/html

Indicates the type of content being returned, such as HTML, JSON, or XML.

Set-Cookie:

Any special values that the client should retain and send back in the next request.