Bug in Proxy Handling (18-Dec-1995)

# Bug in Proxy Handling

## Description

In the 4.0pre6 Library's HTProxy_find() function (version of "4 Jun 95 Written on a rainy day") the comparison of port numbers in the "noproxy" case doesn't work when the port is defaulted. The code looks for a port number attached to the hostname, but if there is no port attached to the port name the code assumes a port number of 0. Seems that the default port should be the default port for the access scheme, or perhaps HTParse(url, , PARSE_HOST) should return a host with the default port number attached. Or perhaps I'm using HTNoProxy_add() incorrectly; I'm specifying a "no-proxy" for access "http" and port 80:

    	HTNoProxy_add("bits.cv.hp.com", "http", 80);

## Reason

The problem is that URLs are canonicalized so that for example http URLs don't have a ":80". This confuses the comparison routine when looking for if a request should be proxied or not.

## Patch

No patch yet