Redirection

CURLOPT_FOLLOWLOCATION can be set to true to have cURL automatically place process redirections. That is, it will detect Location headers in the server response and implicitly issue requests until the server response no longer contains a Location header. To set the maximum number of Location headers to have cURL process automatically before terminating, use the CURLOPT_MAXREDIRS setting. To have authentication credentials persist in requests resulting from redirections, set the CURLOPT_UNRESTRICTED_AUTH setting to true.


© cURL Extension — Web Scraping

>>> Back to TABLE OF CONTENTS <<<
Category: Article | Added by: Marsipan (30.08.2014)
Views: 363 | Rating: 0.0/0
Total comments: 0
avatar