Lasso Soft Inc. > Home

[ curl->set ]

Method

[curl->set] is used together with the [curlopt_*] methods. They are all used for the same purpose – to set different options for the curl operation.

For more information, look at the respective [curlopt_] method.

  • Syntax
  • Methods
  • Traits
curl->set('curlopt_option', 'string value')
curl->set('curlopt_option', 'integer value')
curl->set('curlopt_option', 'null value')
curl->set('curlopt_option', 'array value')
curl->set('curlopt_option', 'bytes value')
Has methods:
Examples
  • Beginner

To obtain a list of only file and directory names from a FTP server

Code

local(c = curl('ftp://ftp.sunet.se/pub/etext/'))
#c->set(curlopt_ftplistonly, 1)
#c->result

Result

0Atte
Finnish
etext
gutenberg
hwb
libellus
mh
ota
runeberg
wiretap-classic-library

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