HTTP Response Syntax
This section describes the Syntax of an HTTP response message returned by a Web server after received an HTTP request.
Based on HTTP/1.1 protocol, after receiving and interpreting an HTTP request
from a Web client, a Web server must return an HTTP response using the syntax listed below:
- Response must have one status-line.
- Response can have zero, one, or many header lines.
- Response can only have zero or one entity-body.
- There is a blank line between header lines and the entity body.
- Status line, head line, and blank line must be ended with CRLF ("/r/n") characters.
- Entity body is the actual data requested by the client request.
- Header lines can be in any order.
Below is a simple HTTP response with two header lines:
HTTP/1.1 200 OK
Last update: 2002.
Table of Contents
About This Book
ASP (Active Server Pages) Introduction
IIS (Internet Information Services) 5.0
MS Script Debugger
ASP Built-in Run-time Objects
Creating and Managing Cookies
Managing Sessions with and without Cookies
scrrun.dll - Scripting Runtime DLL
►Managing Response Header Lines
►HTTP Response Syntax
HTTP Response Header Lines
Controlling Response Header Lines
Viewing Response Header Lines
Response Header Lines for Static Files
Controlling Response Header Line Example
Sending Binary Files to Browsers
Sending Files as Downloads
Calculation Speed and Response Time
ADO (ActiveX Data Object) DLL
Working with MS Access Database
Guest Book Application Example
PDF Printing Version