HTTP Authentication

The 'httpauth’ request option is used to set credentials in the format 'username:password’. The type of HTTP authentication to use is specified via the 'httpauthtype’ request option using one of the pecl_http HTTP_AUTH_* constants, which are similar to those intended for the same purpose in the cURL extension.

Lastly, the 'unrestrictedauth’ request option can be set to true if authentication credentials should be included in requests resulting from redirections pointing to a different host from the current one.


© pecl_http PECL Extension — Web Scraping

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