Hello,
I am looking for assistance in solving this issue:
I have some Frankenstein php I’m trying to work with:
<?php
// Set your return content type
header(‘Content-type: application/xml’);
// Website url to open
$daurl = $_GET[“url”];
$special=htmlspecialchars($daurl);
$trimmed = stripslashes($special);
echo file_get_contents($trimmed);
?>
the problem is that the url I need to call has xml in it:
http:domain/page.svc/page?xmlRequest=<param1=“1” param2=“2” />
I was able to ‘chop’ the querystring to the point I could echo the string and it looked correct (initially it was cut off at the <)
but making the call - it still fails as if the string is still malformed (it just hangs).
if I call a service that has no xml - http:domain/page.svc/page it returns the xml just fine.
Has anyone ever had to call a service with xml in the GET request?
Am I going about this all wrong?
Thanks in advance!