Home |
Function http_find_string_value Function http_add_get_functions Function http_add_post_functions Function http_set_browser_list Function http_set_put_function Function http_set_delete_function Function http_hostnames |
Function http_hostnamesThis function is used to instruct the server to check that the Host name supplied by the HTTP client is correct: void http_hostnames(const char * hostnames); ParametershostnamesA pointer to a string containing all allowed host names separated by semicolons ';'. The string may not contain blanks ' '. The string must be a global or static variable as the function will only copy the pointer to it, but not the string itself. Example:http_hostnames("www.on-time.com;209.68.5.86;www.on-time.de;on-time.com"); If an HTTP client supplies a host name which is not included in the parameter to function http_hostnames, the request will be rejected with HTTP error code 400. If this function is not called, no Host name checks are performed. Function http_set_delete_function
|