RESPONSE command


Syntax:

  RESPONSE responseline

Specify an explicit HTTP response (status) line. This replaces the default 'OK' response generated by GoServe, and should be of the form "HTTP/v.v nnn description", where 'v.v' refers to the HTTP version, 'nnn' is a 3-digit response code number, and 'description' is text (for example, the default is "HTTP/1.0 200 OK").

HTTP only allows certain code numbers to be used, so refer to the HTTP specification before using this command. The text should be short, and is rarely seen, so GoServe will truncate the response line to 100 characters if necessary. If RESPONSE is executed more than once, the last-executed command value is used.

The RESPONSE command has no effect under the Gopher protocol (though the command syntax is checked). It also has no effect if the incoming request uses HTTP/0.9 -- in this case, the protocol does not permit a response line to be returned, as it would be treated as part of the data.


[ previous section | GoServe | next section ]

From 'goserve.doc', version 2.32.
Copyright © International Business Machines Corporation, 1993, 1995.
All rights reserved.