diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-12 08:55:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-12 08:55:47 +0000 |
commit | 1ebda8fa0eedf04a9759bd08b904199b2c02a0bf (patch) | |
tree | afd1d5e831a414caa3f3c045045e94c341dd637a /lib/url.c | |
parent | 9af532e6624dc9d61ce025a6d114102eecfb5eec (diff) |
Added CURLOPT_POSTFIELDSIZE_LARGE to offer a large file version of the
CURLOPT_POSTFIELDSIZE option to allow really big HTTP POSTs.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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. |