websGetDefaultPage GoAhead WebServer API GoAhead EMF

Synopsis

Get the name of the default web page when a URL requests a directory.

Prototype

 #include "webs.h" 

 char_t *websGetDefaultPage(); 

Parameters

None

Description

The websGetDefaultPage procedure returns the default page name to be returned when a URL is requested that specifies a directory rather than a web page. HTTP uses this convention frequently. For example, a request to http://www.goahead.com will be translated into a request to the web page default.htm in the top level web directory. The default URL handler will automatically redirect the user's browser toward the default page if the initial URL nominated a directory.

Return Value

None

Example

 fname = websGetDefaultPage(); 

Stability Classification

Stable.

See Also

websGetDefaultDir, websSetDefaultDir, websSetDefaultPage