Lasso Soft Inc. > Home

[ CURLOPT_BUFFERSIZE ]

Method

[curlopt_buffersize] is used together with [curl->set]. The parameter expected by [curl->set] is an integer that will be used to indicate the your preferred size (in bytes) for the receive buffer used by [curl]. This is just a request to the library, the actual buffer size used may be different and completely disregard your request.

  • Syntax
curl->set(curlopt_buffersize, integer)
Examples
  • Beginner

To set the buffersize for the curl library to 8 kb

Use the [curlopt_buffersize] method.

Code

local(c = curl('www.example.com/login))
#c->set(curlopt_buffersize, 8196)
#c->result

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft