From: Daniel Stenberg Date: Thu, 14 Mar 2002 14:37:16 +0000 (+0000) Subject: CURLOPT_POST deserved a new comment with the new POST-by-callback support X-Git-Tag: upstream/7.37.1~15648 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7886f120f3cf98c337386f335ce67e85714620b6;p=platform%2Fupstream%2Fcurl.git CURLOPT_POST deserved a new comment with the new POST-by-callback support --- diff --git a/lib/url.c b/lib/url.c index cd1854328..a75fafbc4 100644 --- a/lib/url.c +++ b/lib/url.c @@ -634,8 +634,9 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) data->set.use_port = va_arg(param, long); break; 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)) data->set.httpreq = HTTPREQ_POST; break;