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 <<< | |
Views: 414 | |
Total comments: 0 | |