Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

CURL.SetOptionPostFieldSize

Sets the length of post field data.

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

(old name: CURL.SetOptionPostFieldSizeLarge)

Parameters

Parameter Description Example value
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 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.

See also POSTFIELDSIZE option in CURL manual.

See also

Created 18th August 2014, last changed 18th April 2016


CURL.SetOptionPost   -   CURL.SetOptionPostFields

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos