Lasso Soft Inc. > Home

[ curlopt_maxredirs ]

Method

[curlopt_maxredirs] is used with [curl->set]. The parameter expected by [curl->set] is an integer. The value sets the number of times curl will repeat the recursive following of the Location: header.

  • Syntax
curlopt_maxredirs
Examples
  • Beginner

To follow up to 10 Location: header redirections

Code

local(c = curl('www.example.com/login'))
#c->set(curlopt_followlocation, 1)
#c->set(curlopt_maxredirs, 10)
#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