xml - Looking for a solution that is essentially the opposite of PHP's cURL -


my title pretty explain i'm looking for, bit more details. have service sends out data url using curl. next phase of our implementation need have url on our server accepts incoming post data, data in xml format.

does know of solutions handle scenario? know once data can use simplexml parse down out going format need. in case middleware processing data.

basically, need accept parameters (or xml in case) $_post variables , print out response. once xml, can set variable other field $_post , process it. once you've done work, print out message , response user when call api.

if returning type of data, xml, can add header in there tell php output response type.

// store post variable can work $xml = $_post['body'];  // xml  // send response client header('content-type: application/xml; charset=utf-8'); print '<?xml version="1.0" ?> <response>   <status>accepted</status> </response> </xml>'; 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -