Index: nio-http.cc =================================================================== RCS file: /cvs/cygwin-apps/setup/nio-http.cc,v retrieving revision 2.13 diff -u -r2.13 nio-http.cc --- nio-http.cc 29 Apr 2002 11:07:40 -0000 2.13 +++ nio-http.cc 3 Dec 2002 07:08:48 -0000 @@ -113,7 +113,14 @@ s->printf ("GET %s HTTP/1.0\r\n", Purl); else s->printf ("GET %s HTTP/1.0\r\n", path); - s->printf ("Host: %s:%d\r\n", host, port); + + // default HTTP port of 80, Host header can have no port if requested port + // is the same as the default. Some HTTP servers don't behave as expected + // when they receive a Host header with the unnecessary default port value. + if (port == 80) + s->printf ("Host: %s\r\n", host); + else + s->printf ("Host: %s:%d\r\n", host, port); if (net_user && net_passwd) s->printf ("Authorization: Basic %s\r\n",