Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CURL.SetOptionPostFieldSize

Sets the length of post field data.

Component Version macOS Windows Linux Server iOS SDK
CURL 2.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionPostFieldSize"; curl; Value )   More

(old name: CURL.SetOptionPostFieldSizeLarge)

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value The post fields data size in bytes. 1234

Result

Returns "OK" on success.

Description

Sets the length of post field data.
If you want to post data to the server without letting libcurl do a string length() 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.

See also POSTFIELDSIZE option in CURL manual.

See also

Blog Entries

Created 18th August 2014, last changed 3th February 2023


CURL.SetOptionPost - CURL.SetOptionPostFields

💬 Ask a question or report a problem