mirror of https://github.com/BOINC/boinc.git
- 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:
parent
9fa202d8f0
commit
886037e1df
|
@ -2899,3 +2899,11 @@ David April 1 2008
|
||||||
cs_scheduler.C
|
cs_scheduler.C
|
||||||
lib/
|
lib/
|
||||||
coproc.C,h
|
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
|
||||||
|
|
|
@ -416,6 +416,7 @@ int HTTP_OP::libcurl_exec(
|
||||||
curlErr = curl_easy_setopt(curlEasy, CURLOPT_MAXREDIRS, 50L);
|
curlErr = curl_easy_setopt(curlEasy, CURLOPT_MAXREDIRS, 50L);
|
||||||
curlErr = curl_easy_setopt(curlEasy, CURLOPT_AUTOREFERER, 1L);
|
curlErr = curl_easy_setopt(curlEasy, CURLOPT_AUTOREFERER, 1L);
|
||||||
curlErr = curl_easy_setopt(curlEasy, CURLOPT_FOLLOWLOCATION, 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)
|
// if we tell Curl to accept any encoding (e.g. deflate)
|
||||||
// it seems to accept them all, which screws up projects that
|
// it seems to accept them all, which screws up projects that
|
||||||
|
|
Loading…
Reference in New Issue