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:
61a84ab
)
reverted 1.109, we can't set the request type when -d is used, as -G can be
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 18 Mar 2002 22:21:16 +0000
(22:21 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 18 Mar 2002 22:21:16 +0000
(22:21 +0000)
used and it makes it a GET...
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index ba456437a44637a262c094b81b1461bc9562dd50..3ed17c57bd5bf3beb9d1d61e0e5d191d720fffcb 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-1249,9
+1249,13
@@
static ParameterError getparameter(char *flag, /* f or -long-flag */
else
config->postfields=postdata;
}
+ /*
+ We can't set the request type here, as this data might be used in
+ a simple GET if -G is used. Already or soon.
- if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq))
- return PARAM_BAD_USE;
+ if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq))
+ return PARAM_BAD_USE;
+ */
break;
case 'D':
/* dump-header to given file name */