[curlopt_userpwd] is used together with [curl->set]. The parameter expected by [curl->set] is a string that will be used to authenticate with the remote server. The string should be formatted to include both username and password in the following manner: "myname:mypassword".
curl->set(CURLOPT_USERPWD,'string')
Code
local(c = curl('ftp://ftp.example.com/'))
#c->set(curlopt_userpwd, "myusername:mypassword")
#c->result
Result
0-rw-r--r-- 1 14550 80 63382 Feb 12 17:28 file.pdf
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments