mirror of https://github.com/BOINC/boinc.git
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:
parent
6c85b3f1c8
commit
c62fdbcced
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue