title: Making a REST API request in PHP
body: <p>Apologies for newbishness of this question. I'm looking into integrating one website's API into my own website. Here's some quotes from their documentation:</p>
  
  <blockquote>
    <p>At the moment we only support XML,
    when calling our API the HTTP Accept
    header content type must be set to
    “application/xml”.</p>
  </blockquote>
  
  <p>The API uses the <strong>PUT</strong> request method.</p>
  
  <p>I have the XML I want to send, and I have the URL I want to send it to, but how do I go about constructing a suitable HTTP Request in PHP that will also grab the XML that's returned?</p>
  
  <p>Thanks in advance.</p>