I have a php page I want to access and that page is protected by basic auth. I know the url and username/password, they are listed below in code: Faraday provide basic auth function, their doc says that I should use the following code: I want to get the response body of the above url to make sure that the
Tag: basic-authentication
How can I use Basic HTTP Authentication in PHP?
I’m trying to use Basic HTTP Authentication and followed the example on the PHP manual page. But it doesn’t work for me. The variable $_SERVER[‘PHP_AUTH_USER’] doesn’t seem to be set. When a user try to log in, the user is prompted whith a new login-dialog. The server is running PHP 5.3.3 and I have tried with Google Chrome and Internet
How do I make a request using HTTP basic authentication with PHP curl?
I’m building a REST web service client in PHP and at the moment I’m using curl to make requests to the service. How do I use curl to make authenticated (http basic) requests? Do I have to add the …