Help Modifying Generic REST Helper PHP Example Code to Support XML DOM
- by Jennifer Baker
Hi!
I found this example PHP source code at HTTP POST from PHP, without cURL
I need some help modifying the example PHP source to support XML DOM for manipulating a REST API.
I thought that if I update the CASE statement for the XML section below from
$r = simplexml_load_string($res);
to
$r = new DOMDocument();
$r->load($res);
that it…