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.

svn path=/trunk/boinc/; revision=5296
This commit is contained in:
Bruce Allen 2005-02-03 14:58:33 +00:00
parent 6c85b3f1c8
commit c62fdbcced
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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
);
}