1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

CURLOPT_POST deserved a new comment with the new POST-by-callback support

This commit is contained in:
Daniel Stenberg 2002-03-14 14:37:16 +00:00
parent 76fe69b133
commit 7886f120f3

View File

@ -634,8 +634,9 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
data->set.use_port = va_arg(param, long); data->set.use_port = va_arg(param, long);
break; break;
case CURLOPT_POST: case CURLOPT_POST:
/* Does this option serve a purpose anymore? */ /* 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.httpreq = HTTPREQ_POST;
break; break;