diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-08-24 14:28:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-08-24 14:28:48 +0000 |
commit | 1be0bf56a6fb4b9c4491b5cdfa81d007f3bb53ba (patch) | |
tree | 20c5ea03a3548435e7de86a612cec11559aa37bc /docs/curl_easy_setopt.3 | |
parent | 53c27988861f494ff482d4f73785969cb6af3ad9 (diff) |
new binary post details
Diffstat (limited to 'docs/curl_easy_setopt.3')
-rw-r--r-- | docs/curl_easy_setopt.3 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/curl_easy_setopt.3 b/docs/curl_easy_setopt.3 index 3ee43bf50..e1ab4e63e 100644 --- a/docs/curl_easy_setopt.3 +++ b/docs/curl_easy_setopt.3 @@ -2,7 +2,7 @@ .\" nroff -man [file] .\" Written by daniel@haxx.se .\" -.TH curl_easy_setopt 3 "16 June 2000" "Curl 7.0" "libcurl Manual" +.TH curl_easy_setopt 3 "24 August 2000" "Curl 7.2" "libcurl Manual" .SH NAME curl_easy_setopt - Set curl easy-session options .SH SYNOPSIS @@ -19,6 +19,8 @@ options are set with the followed by a parameter. That parameter can be a long, a function pointer or an object pointer, all depending on what the option in question expects. Read this manual carefully as bad input values may cause libcurl to behave badly! +You can only set one option in each function call. A typical application uses +many calls in the setup phase. The .I "handle" @@ -117,7 +119,7 @@ CURLOPT_INFILE and CURLOPT_INFILESIZE are also interesting for uploads. A non-zero parameter tells the library to do a regular HTTP post. This is a normal application/x-www-form-urlencoded kind, which is the most commonly used one by HTML forms. See the CURLOPT_POSTFIELDS option for how to specify the -data to post. +data to post and CURLOPT_POSTFIELDSIZE in how to set the data size. .TP .B CURLOPT_FTPLISTONLY A non-zero parameter tells the library to just list the names of an ftp @@ -188,6 +190,12 @@ few minutes risk aborting perfectly normal operations. Pass a char * as parameter, which should be the full data to post in a HTTP post operation. See also the CURLOPT_POST. .TP +.B CURLOPT_POSTFIELDSIZE +If you want to post data to the server without letting libcurl do a strlen() +to measure the data size, this option must be used. Also, when this option is +used, you can post fully binary data which otherwise is likely to fail. If +this size is set to zero, the library will use strlen() to get the data size. +.TP .B CURLOPT_REFERER Pass a pointer to a zero terminated string as parameter. It will be used to set the referer: header in the http request sent to the remote server. This |