Lasso Soft Inc. > Home

[ CURLOPT_AUTOREFERER ]

Method

[curlopt_autoreferer] is used together with [curl->set]. The parameter expected by [curl->set] is an integer that will be used to specify whether [curl] should set the Referer: field when it follows a Location: redirect.

  • Syntax
curl->set(CURLOPT_AUTOREFERER,1)
Examples
  • Beginner

To make sure the Referer field is set when curl is redirected

Use the [curlopt_autoreferer] method:

Code

local(c = curl('http://www.google.com/'))
#c->set(curlopt_autoreferer, 1)
#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 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft