How-to articles, tricks, and solutions about HTTP-HEADERS
HTTP authentication logout via PHP
To log out a user from HTTP authentication using PHP, you can use the header function to send a "WWW-Authenticate" header with a value of "Basic realm=realmName" and a 401 status code.
PHP cURL how to add the User Agent value OR overcome the Servers blocking cURL requests?
You can add a custom User Agent value to a cURL request in PHP using the CURLOPT_USERAGENT option.