Format of requests to a CGI server

Variant for calculating a move in the game and creating HTML output

1 byte: 0 (format version)
string: Host name (if known) or IP of the http client
string: Last component of $PATH_INFO (before "?")
string: $QUERY_STRING (after "?"), % escapes expanded
1 byte: 1 = client knows how to display images, else 0

Variant for creating an inline image of the game state

1 byte: 1 (format version)
string: Last component of $PATH_INFO (before "?")


The response is the HTML page or image, prefixed with the necessary MIME headers.

Types used

Back to the main page.

Page created: Jul 22, 1997 - last update: Nov 26, 2002 - version 2.1
Jörg Czeranski (Impressum)