- client: Per Carl's recommendation add CURLOPT_POST301 to the

list of curl options used so that the followups to redirects
        still post instead of get.
        
    client/
        http_curl.C

svn path=/trunk/boinc/; revision=14993
This commit is contained in:
Rom Walton 2008-04-01 18:31:16 +00:00
parent 9fa202d8f0
commit 886037e1df
2 changed files with 9 additions and 0 deletions

View File

@ -2899,3 +2899,11 @@ David April 1 2008
cs_scheduler.C
lib/
coproc.C,h
Rom April 1 2008
- client: Per Carl's recommendation add CURLOPT_POST301 to the
list of curl options used so that the followups to redirects
still post instead of get.
client/
http_curl.C

View File

@ -416,6 +416,7 @@ int HTTP_OP::libcurl_exec(
curlErr = curl_easy_setopt(curlEasy, CURLOPT_MAXREDIRS, 50L);
curlErr = curl_easy_setopt(curlEasy, CURLOPT_AUTOREFERER, 1L);
curlErr = curl_easy_setopt(curlEasy, CURLOPT_FOLLOWLOCATION, 1L);
curlErr = curl_easy_setopt(curlEasy, CURLOPT_POST301, 1L);
// if we tell Curl to accept any encoding (e.g. deflate)
// it seems to accept them all, which screws up projects that