aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c11
-rw-r--r--lib/urldata.h6
2 files changed, 12 insertions, 5 deletions
diff --git a/lib/url.c b/lib/url.c
index 2b215bdbf..f7b7cc378 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -782,11 +782,18 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
break;
case CURLOPT_POSTFIELDSIZE:
/*
- * The size of the POSTFIELD data, if curl should now do a strlen
- * to find out. Enables binary posts.
+ * The size of the POSTFIELD data to prevent libcurl to do strlen() to
+ * figure it out. Enables binary posts.
*/
data->set.postfieldsize = va_arg(param, long);
break;
+ case CURLOPT_POSTFIELDSIZE_LARGE:
+ /*
+ * The size of the POSTFIELD data to prevent libcurl to do strlen() to
+ * figure it out. Enables binary posts.
+ */
+ data->set.postfieldsize = va_arg(param, curl_off_t);
+ break;
case CURLOPT_REFERER:
/*
* String to set in the HTTP Referer: field.
diff --git a/lib/urldata.h b/lib/urldata.h
index 4e7b14e3f..1338c666e 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -780,9 +780,9 @@ struct UserDefined {
char *useragent; /* User-Agent string */
char *encoding; /* Accept-Encoding string */
char *postfields; /* if POST, set the fields' values here */
- size_t postfieldsize; /* if POST, this might have a size to use instead of
- strlen(), and then the data *may* be binary (contain
- zero bytes) */
+ curl_off_t postfieldsize; /* if POST, this might have a size to use instead
+ of strlen(), and then the data *may* be binary
+ (contain zero bytes) */
char *ftpport; /* port to send with the FTP PORT command */
char *device; /* network interface to use */
curl_write_callback fwrite; /* function that stores the output */