12-28-2010
7 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
I guess this is the way I post questions then. (1 Reply)
Discussion started by: kwokang
1 Replies
2. Post Here to Contact Site Administrators and Moderators
Hello.
Is there a forum to post my availability for work? (1 Reply)
Discussion started by: douglaskbell
1 Replies
3. What is on Your Mind?
There is an option now to post anonymously in this forum. Note the Make Post Anonymously check box option when you post in this forum.
https://www.unix.com/members/neo-albums-forum-pics-picture314-anonymous-posting-option.png (1 Reply)
Discussion started by: Neo
1 Replies
4. Post Here to Contact Site Administrators and Moderators
Quick question,
I'm learning shell scripting on my own from resources like the 'Teach Yourself' books, web sites, etc. If I have any questions about these materials, do I still need to post them to the homework section?
The template asks specific things like school associated with or... (7 Replies)
Discussion started by: Chasman78
7 Replies
5. UNIX for Dummies Questions & Answers
This forum is closed for new threads.
Please post in this forum:
UNIX for Beginners Questions & Answers (0 Replies)
Discussion started by: Neo
0 Replies
6. Post Here to Contact Site Administrators and Moderators
Hello!
I posted twice on issues I'm having getting the latest GCC compiler to compile ( "Command failed for target 'check-recursive' error" in the Solaris forum and "Compiling GCC 6.3.0 - Error with Library" in the UNIX for Beginners... forum) with zero responses. After many hours of beating my... (0 Replies)
Discussion started by: PJ_Namias
0 Replies
7. What is on Your Mind?
OFF_TOPIC
Hey ozsavran,
Thanks for the great post and photo attachments. Do you mind to explain to me what steps you took to upload and attach those files? I cannot do it and want to attach files like you did. Thanks! (2 Replies)
Discussion started by: Neo
2 Replies
LEARN ABOUT MOJAVE
curlopt_postfieldsize
CURLOPT_POSTFIELDSIZE(3) curl_easy_setopt options CURLOPT_POSTFIELDSIZE(3)
NAME
CURLOPT_POSTFIELDSIZE - size of POST data pointed to
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_POSTFIELDSIZE, long size);
DESCRIPTION
If you want to post data to the server without having libcurl do a strlen() to measure the data size, this option must be used. When this
option is used you can post fully binary data, which otherwise is likely to fail. If this size is set to -1, the library will use strlen()
to get the size.
If you post more than 2GB, use CURLOPT_POSTFIELDSIZE_LARGE(3).
DEFAULT
-1
PROTOCOLS
HTTP
EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
const char *data = "data to send";
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
/* size of the POST data */
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) strlen(data));
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);
curl_easy_perform(curl);
}
AVAILABILITY
Along with HTTP
RETURN VALUE
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO
CURLOPT_POSTFIELDS(3), CURLOPT_POSTFIELDSIZE_LARGE(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_POSTFIELDSIZE(3)