Home > How do I read the Integration API XML content from my PHP script?
Categories: Technical Options
(Last Updated On: July 13, 2018)
The XML content is a stream in XML format and not a POST or GET parameter as most PHP developer usually expect.
Therefore the XML stream is not available in the PHP $_ system variable. You need to use this method instead to read the stream in a $xml variable:
Therefore the XML stream is not available in the PHP $_ system variable. You need to use this method instead to read the stream in a $xml variable:
$xml = fopen(“php://input”,”r”);
Published January 18, 2012