projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76fe69b
)
CURLOPT_POST deserved a new comment with the new POST-by-callback support
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 14 Mar 2002 14:37:16 +0000
(14:37 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 14 Mar 2002 14:37:16 +0000
(14:37 +0000)
lib/url.c
patch
|
blob
|
history
diff --git
a/lib/url.c
b/lib/url.c
index
cd18543
..
a75fafb
100644
(file)
--- 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;