HTTP Response: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
=Overview=
=Overview=


A ''HTTP response'' consists of a ''status line'', followed by an optional set of headers, followed by blank line followed by an optional message body.
A ''HTTP response'' consists of a [[#The_Response_Status_Line|status line]], followed by an optional set of [[#The_Headers|headers]], followed by [[#The_Blank_Line|blank line]] followed by an optional [[#The_Message_Body|message body]].


 
This is a simple example:
The status line includes the status code. More about status codes: [[HTTP Status Codes]].


<pre>
<pre>
Line 20: Line 19:
Content-Length: 1024
Content-Length: 1024


...
...
</pre>
</pre>
=The Response Status Line=
The status line includes the status code. More about status codes: [[HTTP Status Codes]].
=The Headers=
=The Blank Line=
=The Message Body=


More about HTTP response: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.
More about HTTP response: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.

Revision as of 02:32, 6 January 2017

External

Internal

Overview

A HTTP response consists of a status line, followed by an optional set of headers, followed by blank line followed by an optional message body.

This is a simple example:

HTTP/1.1 200 OK
Content-Type: text/html
HttpServer: Test Server
Content-Length: 1024

...
...

The Response Status Line

The status line includes the status code. More about status codes: HTTP Status Codes.


The Headers

The Blank Line

The Message Body

More about HTTP response: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html.

The HTTP Response Headers

HTTP Response Entity Body