Index: client/clinet.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/clinet.c,v retrieving revision 1.39 diff -u -r1.39 clinet.c --- client/clinet.c 2001/08/07 13:53:09 1.39 +++ client/clinet.c 2001/08/15 00:12:33 @@ -309,10 +309,11 @@ #ifdef HAVE_FDOPEN f=fdopen(s,"r+"); - fprintf(f,"GET %s%s%s HTTP/1.0\r\n\r\n", + fprintf(f,"GET %s%s%s HTTP/1.0\r\nUser-Agent: Freeciv/%s\r\n\r\n", proxy_url ? "" : "/", urlpath, - proxy_url ? metaserver : ""); + proxy_url ? metaserver : "", + VERSION_STRING); fflush(f); #else { @@ -323,7 +324,10 @@ if(!proxy_url) send(s,"/",1,0); send(s,urlpath,strlen(urlpath),0); if(proxy_url) send(s,metaserver,strlen(metaserver),0); - send(s," HTTP/1.0\r\n\r\n", sizeof(" HTTP/1.0\r\n\r\n"),0); + send(s," HTTP/1.0\r\n", sizeof(" HTTP/1.0\r\n"),0); + send(s,"User-Agent: Freeciv ", sizeof("User-Agent: Freeciv/"),0); + send(s,VERSION_STRING, sizeof(VERSION_STRING),0); + send(s,"\r\n\r\n", sizeof("\r\n\r\n"),0); while ((i = recv(s, str, sizeof(str), 0)) > 0) fwrite(str,1,i,f);