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.