Making a REST API request in PHP
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: At the moment we only support XML, when calling our API the HTTP Accept header content type must be set to “application/xml”. The API uses the PUT request method. 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? Thanks in advance. You can use file_get_contents and stream_context_create to create a request