Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
HTTPConversions


NAME

HTTPConversions - HTTP converting tools

SYNOPSIS

TYPE DateStr = ARRAY 34 OF CHAR; (* max. length of all possible dates *)


PROCEDURE ToHTTPDate(date: Times.Time; VAR httpDate: DateStr); PROCEDURE FromHTTPDate(httpDate: Streams.Stream; date: Times.Time): BOOLEAN; PROCEDURE Base64Decode(in: Streams.Stream; VAR out: ARRAY OF CHAR): BOOLEAN;

DESCRIPTION

The procedures of HTTPConversions simplifies converting HTTP structures and Oberon structures.

ToHTTPDate converts an oberon time stamp into a string with a valid date (RFC1123) for the HTTP-protocol. FromHTTPDate does it vice versa. Every allowed version of a HTTP-date is recognized. FromHTTPDate returns FALSE if httpDate is not a valid HTTP-date.

Base64Decode transforms a base-64-encoded stream to normal ASCII-code. It will return FALSE if out isn't large enough to store the data.

SEE ALSO

Streams
stream operations
Times
time stamps

AUTHOR

Manfred Rueß, University of Ulm
Edited by: borchert, last change: 1998/04/24, revision: 1.1, converted to HTML: 1998/04/24

Oberon || Library || Module Index || Search Engine || Definition || Module