HTTP Expect fix

svn path=/trunk/boinc/; revision=9272
This commit is contained in:
David Anderson 2006-01-20 08:37:10 +00:00
parent aeaad55cf0
commit 991b2c7300
2 changed files with 13 additions and 0 deletions

View File

@ -666,3 +666,11 @@ David 20 Jan 2006
client/ client/
file_xfer.C file_xfer.C
David 20 Jan 2006
- suppress "Expect: 100 continue" in HTTP header.
Apparently this causes problems with some proxies
(from Ian Hay)
client/
http_curl.C

View File

@ -388,6 +388,11 @@ The checking this option controls is of the identity that the server claims. The
return ERR_FOPEN; return ERR_FOPEN;
} }
} }
// suppress Expect line in header (avoids problems with some proxies)
//
pcurlList = curl_slist_append(pcurlList, "Expect:");
if (pcurlList) { // send custom headers if required if (pcurlList) { // send custom headers if required
curlErr = curl_easy_setopt(curlEasy, CURLOPT_HTTPHEADER, pcurlList); curlErr = curl_easy_setopt(curlEasy, CURLOPT_HTTPHEADER, pcurlList);
} }