diff --git a/checkin_notes b/checkin_notes index dd5b2e90c1..1262058c17 100755 --- a/checkin_notes +++ b/checkin_notes @@ -23893,3 +23893,11 @@ Rom 3 Feb 2005 client/win/ win_idle_tracker.cpp + +Bruce 3 Feb 2005 + - core client: add platform name and client version to HTTP request headers + when going via a proxy server. See David's change just above from 2 Feb. + + client/ + http.C + diff --git a/client/http.C b/client/http.C index 5dd2980202..db09a800f7 100644 --- a/client/http.C +++ b/client/http.C @@ -113,14 +113,16 @@ static void http_get_request_header_proxy( if (offset) sprintf( offset_info, "Range: bytes=%.0f-\015\012", offset ); sprintf(buf, "GET %s HTTP/1.0\015\012" - "User-Agent: BOINC client\015\012" + "User-Agent: BOINC client (%s %d.%02d)\015\012" "Host: %s:%d\015\012" "%s" "Connection: close\015\012" "Accept: */*\015\012" "Proxy-Authorization: Basic %s\015\012" "\015\012", - file, host, port, offset?offset_info:"", encstr + file, + HOSTTYPE, BOINC_MAJOR_VERSION, BOINC_MINOR_VERSION, + host, port, offset?offset_info:"", encstr ); }