HTTP Authentication

cURL supports both Basic and Digest HTTP authentication methods, among others. The CURLOPT_HTTPAUTH setting controls the method to use and is set using constants such as CURLAUTH_BASIC or CURLAUTH_DIGEST. The CURLOPT_USERPWD setting is a string containing the authentication credentials to use in the format 'username:password’. Note that this has to be set for each request requiring authentication.


© cURL Extension — Web Scraping

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