The include file http.h

This file contains definitions for use with Sculptor Internet routines.


  1. Status codes for use with the web_status() and http_simple_send() functions. (Prefix SC_.)


  1. Session types, stored in the session file.

SESSION_TYPE_COOKIE

Session ID stored in a cookie

SESSION_TYPE_PARAMETER

Session ID stored in URLs or hidden fields

See: The session file and create_session() function.


  1. Error codes returned by Internet functions. (Prefix WWW_ERR_.)

WWW_ERR_OK

OK, no error.

WWW_ERR_GENERAL

General error type; usually means something wasn’t found.

WWW_ERR_NOT_IN_HEADER

A print or put statement has been executed.

WWW_ERR_NOT_FIRST_HEADER

A print or put statement, put_cookie(), put_web_header() or web_redirect() has been executed.

WWW_ERR_NO_SESSION_ID_FLD

No SessionId field in the session file.

WWW_ERR_NO_TYPE_FLD

No Type field in the session file.

WWW_ERR_NO_TIMEOUT_FLD

No TimeOut field in the session file.

WWW_ERR_NO_EXPIRES_FLD

No Expires field in the session file.

WWW_ERR_NO_IPADDRESS_FLD

No IPAddress field in the session file.

WWW_ERR_NO_AUTH_USER_FLD

No AuthorisedUser field in the session file.

WWW_ERR_GENERATING SESSION

A unique session key could not be created. This error is only generated after ten different random keys have been tried.

WWW_ERR_NO_CLIENT_SESSION

There is no session record for this client.

WWW_ERR_EXPIRED_SESSION

The session record has expired.

WWW_ERR_BAD_IPADDRESS

The client’s IP address has changed.

WWW_ERR_BAD_AUTH_USER

The authorised user name has changed.

WWW_ERR_WITH_SESSION_FIL

Cannot write new expiry time to session file.

WWW_ERR_SESSION_FILE_CLOSED

The session file is closed and should be opened.

WWW_ERR_PARAMETER

The parameter passed is the wrong kind.

WWW_ERR_NO_FILE_PARAM

The parameter passed is not a file parameter.

WWW_ERR_FILE_CREATION

The file could not be created.

WWW_ERR_NO_SESSION_RECEIVED

The client SESSION_ID has not been received.

WWW_ERR_NO_CONTENT

The client request does not contain any content.


RELATED TOPICS

Standard include files

Creating web pages with Sculptor