Meet us at at Real World in Orlando, Florida.

All functions   Mac OS X   Windows   Crossplatform   Components   Guides  
New in version: 2.0   2.1   2.2   2.3   2.4   2.5   2.6   2.7   2.8  

CURL.SetOptionMaxRedirs

Component: CURL
Version: 2.5
Mac OS X: Works
Windows: Works

MBS( "CURL.SetOptionMaxRedirs"; handle; value )

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl
Value Maximum number of redirects. -1

Result

Returns "OK" on success.

Description

Sets the redirection limit.
If that many redirections have been followed, the next redirect will cause an error (CURLE_TOO_MANY_REDIRECTS). This option only makes sense if the CURL.SetOptionFollowLocation is used at the same time. Added in 7.15.1: Setting the limit to 0 will make libcurl refuse any redirect. Set it to -1 for an infinite number of redirects (which is the default)

Feedback: Report problem or ask question.




Links
MBS REAL studio Plugins - Bilder aus Nickenich