home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


send_status_line

 $

c


->send_status_line
 ( [

code

, [

msg

, [

proto

]]] )

Sends the status line composed of the given arguments back to the client. If the arguments are given, the default status line is sent as HTTP/1.1 200 OK . The arguments are:

code

The numeric code indicating the status of the request, e.g., 200 for an OK request or 404 for a request for a resource that doesn't exist.

msg

A short string describing the status code.

proto

A string indicating the protocol and version number used by the server, e.g., HTTP/1.1.