--- setup-FR/nio-http.cc.orig 2015-02-18 15:24:28.632527600 +0100 +++ setup-FR/nio-http.cc 2015-02-18 15:43:57.258378500 +0100 @@ -26,6 +26,8 @@ #include #include +#include "setup_version.h" +#include "ini.h" #include "resource.h" #include "state.h" #include "simpsock.h" @@ -122,6 +124,9 @@ else s->printf ("Host: %s:%d\r\n", host, port); + // User agent loosely based on RFC2616 + s->printf ("User-Agent: Setup.exe/%s (Cygwin; Windows; %s)\r\n",(setup_version[0] ? setup_version : "unknown"),is_64bit ? "64 bit" : "32 bit"); + if (net_user && net_passwd) s->printf ("Authorization: Basic %s\r\n", base64_encode (net_user, net_passwd));