Sun Java System Web Proxy Server 4.0.11 NSAPI Developer's Guide

util_url_fix_host name

The util_url_fix_host name function converts the host name in a URL to lowercase and removes redundant port numbers.


#include <libproxy/util.h>
void util_url_fix_host name(char *url);


void but changes the value of its parameter string

The protocol specifier and the host name in the parameter string are changed to lowercase. The function also removes redundant port numbers, such as 80 for HTTP, 70 for gopher, and 21 for FTP.


char *url is the URL to be converted.

See Also

util_url_cmp, util_uri_check