0

Using PHP, how can I login to a server that uses basic http auth. There are no forms or anything so I'm not sure how to go about it. The public ones I've tried are buggy and many do not work. Can someone show me a basic working example?

user3412816
  • 53
  • 1
  • 8

1 Answers1

1

You may want to take a look at this quetsion: How do I make a request using HTTP basic authentication with PHP curl?

Using cURL:

curl_setopt($process, CURLOPT_USERPWD, $username . ":" . $password);  
Community
  • 1
  • 1
nxu
  • 2,202
  • 1
  • 22
  • 34