malformed XML returned by curl command line -



malformed XML returned by curl command line -

i'm sending string of xml tags , info in php api on server expecting xml.

we sending string via command line this

exec("curl http://addresstoapi.com/index.php?xml=$xml", $response);

$xml string of tags , pringoperties sending api.

the api processes string xml fine , returns response. $response contains returned success or failure xml sent array doesnt include of xml tags.

unfortunately sending info string because server running php 4.3.9 without domxml extension , doesnt have php curl installed either. cannot run on server , cant upgrade server due other software running on it.

so since need work api figured send xml string (which seems work fine) response isn't returned string or xml.

we know api server returning xml logs every request , can see input document , returned response in log.

somehow seems command line curl changing xml response array without tags.

im hoping makes sense. know away xml reponse can retrieve info successfully.

we figured out solution this. im still unsure why returned response array rathan string managed include tags in array elements. utilize foreach loop pass each key of array onto end of string.

we have response wanted.

apologies, understand hard help without examples, when problem isnt clear. turned out 1 of them cases needed play code until got solution wanted.

either way many time in reading post.

xml curl command-line php4

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -