|
bagder: curl/lib url.c,1.468,1.469: msg#00033web.curl.cvs
Update of /cvsroot/curl/curl/lib In directory labb:/tmp/cvs-serv15631/lib Modified Files: url.c Log Message: If any of the options CURLOPT_HTTPGET, CURLOPT_POST and CURLOPT_HTTPPOST is set to 1, CURLOPT_NOBODY will now automatically be set to 0. Index: url.c =================================================================== RCS file: /cvsroot/curl/curl/lib/url.c,v retrieving revision 1.468 retrieving revision 1.469 diff -u -d -r1.468 -r1.469 --- url.c 27 Jul 2005 22:17:15 -0000 1.468 +++ url.c 27 Jul 2005 22:29:50 -0000 1.469 @@ -644,8 +644,10 @@ /* Does this option serve a purpose anymore? Yes it does, when CURLOPT_POSTFIELDS isn't used and the POST data is read off the callback! */ - if(va_arg(param, long)) + if(va_arg(param, long)) { data->set.httpreq = HTTPREQ_POST; + data->set.opt_no_body = FALSE; /* this is implied */ + } else data->set.httpreq = HTTPREQ_GET; break; @@ -680,6 +682,7 @@ */ data->set.httppost = va_arg(param, struct curl_httppost *); data->set.httpreq = HTTPREQ_POST_FORM; + data->set.opt_no_body = FALSE; /* this is implied */ break; case CURLOPT_REFERER: @@ -813,6 +816,7 @@ if(va_arg(param, long)) { data->set.httpreq = HTTPREQ_GET; data->set.upload = FALSE; /* switch off upload */ + data->set.opt_no_body = FALSE; /* this is implied */ } break; _______________________________________________ http://cool.haxx.se/mailman/listinfo/curl-commits |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | bagder: curl/lib cookie.c, 1.69, 1.70 cookie.h, 1.17, 1.18 getinfo.c, 1.45, 1.46 url.c, 1.467, 1.468: 00033, cvs |
|---|---|
| Next by Date: | bagder: curl/docs/libcurl curl_easy_setopt.3,1.118,1.119: 00033, cvs |
| Previous by Thread: | bagder: curl/lib cookie.c, 1.69, 1.70 cookie.h, 1.17, 1.18 getinfo.c, 1.45, 1.46 url.c, 1.467, 1.468i: 00033, cvs |
| Next by Thread: | bagder: curl/docs/libcurl curl_easy_setopt.3,1.118,1.119: 00033, cvs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |