Meet us at at Real World in Orlando, Florida.

All functions   Mac OS X   Windows   Crossplatform   Components   Guides  
New in version: 2.0   2.1   2.2   2.3   2.4   2.5   2.6   2.7   2.8  

CURL.SetOptionBufferSize

Component: CURL
Version: 2.5
Mac OS X: Works
Windows: Works

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.

Feedback: Report problem or ask question.




Links
MBS REAL studio tutorial videos - Christians Software aus Nickenich