HttpRegisterFolder


int HttpRegisterFolder ( HttpConfigData *pConfig , const char *pBaseUrl , unsigned uFlags , const char *pTypeFilter )




 
Registers the folder plugin. This function must called directly before HttpDaenon(...) is called.

 
pConfig config data of the server
 
pBaseUrl is the base url for which the plugin is used 0 = means every folder
 
uFlags several flags for the plugin:
 
HTTP_FOLDER_INGNOREROOT no folder view for the root path
HTTP_FOLDER_ADDSPACE add a space at the begin of a entry

 
pTypeFilter is a list of suffixes of all allowed or not allowed file types:

"html;htm;txt" show "*.html" "*.htm" and "*.txt"
"*html;htm;txt" don't show "*.html" "*.htm" and "*.txt"
 

Returns 0 if the plugin was installed or an error code:

  1 = no more user parameters
 

The folder plugin for the HTTP-Server allows to view url to a directory as a file list:



 

see also:

AzHttp Overview | HttpDaemon | HttpRegisterIcon | HttpInitFolder | HttpRegisterScript