Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

CURL.SetOptionBufferSize

Sets the buffer size.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionBufferSize"; Handle; Value )

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl
Value The buffer size. 50000

Result

Returns "OK" on success.

Description

Sets the buffer size.
Pass a number specifying your preferred size (in bytes) for the receive buffer in libcurl. The main point of this would be that the write callback gets called more often and with smaller chunks. This is just treated as a request, not an order. You cannot be guaranteed to actually get the given size.

This size is by default set as big as possible (CURL_MAX_WRITE_SIZE), so it only makes sense to use this option if you want it smaller.

Examples

Sets buffer size:

MBS( "CURL.SetOptionBufferSize"; $curl; 1024*1024 )

See also


CURL.SetOptionAutoReferer   -   CURL.SetOptionCAINFO

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins