diff options
author | Yang Tse <yangsita@gmail.com> | 2008-01-18 05:58:00 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-01-18 05:58:00 +0000 |
commit | f6adae8d35f0d2b0bf80a47a5b0dd5ab35dff6b0 (patch) | |
tree | 3051a8a04a45a33a343dfc43551e7db9eef0cda7 | |
parent | bcaadb428459f189537a6232725eed95d45fabd5 (diff) |
to actually allow really big HTTP POSTs curl's postfieldsize type is changed to
curl_off_t and CURLOPT_POSTFIELDSIZE_LARGE is used to pass value to libcurl
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c index e7c14a26f..3ee924efc 100644 --- a/src/main.c +++ b/src/main.c @@ -386,7 +386,7 @@ struct Configurable { bool disable_eprt; curl_off_t resume_from; char *postfields; - long postfieldsize; + curl_off_t postfieldsize; char *referer; long timeout; long connecttimeout; @@ -4428,7 +4428,7 @@ operate(struct Configurable *config, int argc, argv_item_t argv[]) switch(config->httpreq) { case HTTPREQ_SIMPLEPOST: my_setopt(curl, CURLOPT_POSTFIELDS, config->postfields); - my_setopt(curl, CURLOPT_POSTFIELDSIZE, config->postfieldsize); + my_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, config->postfieldsize); break; case HTTPREQ_POST: my_setopt(curl, CURLOPT_HTTPPOST, config->httppost); |