Hello again.
Please can someone help me with code that will pharse an XML file ( test.xml ) to an URL ( ).
Thanks
Please can someone help me with code that will pharse an XML file ( test.xml ) to an URL ( ).
Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$req = new HttpRequest($url, HTTP_METH_POST); //this line changed
$req->addHeaders(("POST /webpage.asmx HTTP/1.1"));
$req->addHeaders(("Host: ws.webpage2.co.uk"));
$req->addHeaders(("Content-Type:text/xml; charset=utf-8"));
$req->addHeaders(("Content-Length: 999"));
$req->addHeaders(('SOAPAction:"[URL unfurl="true"]http://webpage"'));[/URL]
$req->addPostFile(($url.".xml"));
$req->send();
echo $req->getResponseBody();
pecl install --alldeps httprequest
$req->addHeaders(array("X-PHP-Version"=>phpversion())));