The inets http client does not properly set the host header when making requests to a host listening on a port other than 80. This bug was reported here: <a href="http://www.erlang.org/pipermail/erlang-bugs/2009-January/001175.html">http://www.erlang.org/pipermail/erlang-bugs/2009-January/001175.html</a><br>
<br>This patch appends the port number if the request is directed to a port other than 80. <br>