httpParseDate()

Allows parsing an RFC-2616 conform date string, e.g. from header "If-Modified-Since".

Synopsis

int httpParseDate( string date);

Parameter

Parameter Description
date The date string

Return value

Returns the parsed date on success.

Error

Errors can be queried with getLastError(). Errors can be:

  • Too few arguments

  • No httpServer() is installed

  • httpParseDate() is called from a different script than the httpServer() was installed from

  • The given web resource is not registered

Description

Parses an RFC-2616 conform date string, e.g. from header "If-Modified-Since".

Assignment

HTTP Functions

Availability

CTRL