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/18 00:23:06 @@ -306,26 +306,25 @@ my_closesocket(s); return NULL; } - + my_snprintf(str,sizeof(str), + "GET %s%s%s HTTP/1.0\r\nUser-Agent: Freeciv/%s %s\r\n\r\n", + proxy_url ? "" : "/", + urlpath, + proxy_url ? metaserver : "", + VERSION_STRING, + client_string); #ifdef HAVE_FDOPEN f=fdopen(s,"r+"); - fprintf(f,"GET %s%s%s HTTP/1.0\r\n\r\n", - proxy_url ? "" : "/", - urlpath, - proxy_url ? metaserver : ""); + fwrite(str,1,strlen(str),f); fflush(f); #else { int i; f=tmpfile(); - send(s,"GET ",4,0); - 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); - - while ((i = recv(s, str, sizeof(str), 0)) > 0) + my_writesocket(s,str,strlen(str)); + + while ((i = my_readsocket(s, str, sizeof(str))) > 0) fwrite(str,1,i,f); fflush(f); Index: client/gui-beos/gui_main.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/gui-beos/gui_main.c,v retrieving revision 1.2 diff -u -r1.2 gui_main.c --- client/gui-beos/gui_main.c 2000/07/04 23:29:39 1.2 +++ client/gui-beos/gui_main.c 2001/08/18 00:23:06 @@ -4,6 +4,8 @@ #include +const char *client_string = "gui-beos"; + char logfile[256] = ""; void Index: client/gui-gtk/gui_main.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk/gui_main.c,v retrieving revision 1.87 diff -u -r1.87 gui_main.c --- client/gui-gtk/gui_main.c 2001/08/14 13:16:16 1.87 +++ client/gui-gtk/gui_main.c 2001/08/18 00:23:06 @@ -64,6 +64,8 @@ #include "freeciv.ico" +const char *client_string = "gui-gtk"; + /*void file_quit_cmd_callback( GtkWidget *widget, gpointer data )*/ void game_rates( GtkWidget *widget, gpointer data ); Index: client/gui-mui/gui_main.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/gui-mui/gui_main.c,v retrieving revision 1.53 diff -u -r1.53 gui_main.c --- client/gui-mui/gui_main.c 2001/08/05 14:44:58 1.53 +++ client/gui-mui/gui_main.c 2001/08/18 00:23:06 @@ -90,6 +90,8 @@ #include "transparentstringclass.h" #include "worklistclass.h" +const char *client_string = "gui-mui"; + /************************************************************************** Print extra usage information, including one line help on each option, to stderr. Index: client/gui-stub/gui_main.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/gui-stub/gui_main.c,v retrieving revision 1.3 diff -u -r1.3 gui_main.c --- client/gui-stub/gui_main.c 2000/07/10 06:31:23 1.3 +++ client/gui-stub/gui_main.c 2001/08/18 00:23:06 @@ -4,6 +4,8 @@ #include "gui_main.h" +const char *client_string = "gui-stub"; + void ui_main(int argc, char *argv[]) Index: client/gui-xaw/gui_main.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/gui_main.c,v retrieving revision 1.55 diff -u -r1.55 gui_main.c --- client/gui-xaw/gui_main.c 2001/01/30 23:38:53 1.55 +++ client/gui-xaw/gui_main.c 2001/08/18 00:23:06 @@ -64,6 +64,8 @@ #include "freeciv.ico" +const char *client_string = "gui-xaw"; + static AppResources appResources; /* ids of the units icons in information display: (or 0) */ Index: client/include/gui_main_g.h =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/include/gui_main_g.h,v retrieving revision 1.4 diff -u -r1.4 gui_main_g.h --- client/include/gui_main_g.h 2000/07/10 06:31:25 1.4 +++ client/include/gui_main_g.h 2001/08/18 00:23:06 @@ -24,4 +24,6 @@ void set_unit_icon(int idx, struct unit *punit); void set_unit_icons_more_arrow(int onoff); +extern const char *client_string; + #endif /* FC__GUI_MAIN_G_H */