]> granicus.if.org Git - curl/commitdiff
to actually allow really big HTTP POSTs curl's postfieldsize type is changed to
authorYang Tse <yangsita@gmail.com>
Fri, 18 Jan 2008 05:58:00 +0000 (05:58 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 18 Jan 2008 05:58:00 +0000 (05:58 +0000)
curl_off_t and CURLOPT_POSTFIELDSIZE_LARGE is used to pass value to libcurl

src/main.c

index e7c14a26f29d3f98fa1ed257fb74c16ea33ca32a..3ee924efcb908ef745c4a5ed84ae5600a377a201 100644 (file)
@@ -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);