title: How do I make a request using HTTP basic authentication with PHP curl?
body: <p>I'm building a REST web service client in PHP and at the moment I'm using curl to make requests to the service.</p>
  
  <p>How do I use curl to make authenticated (http basic) requests? Do I have to add the headers myself?</p>