Not sure if this is a "newbie's" question - I just wasn't sure where else to put it. I've only been programming in PHP for a year or 2 now so I guess that makes me a newbie.. anyways - My question is... In my "client" web service page, I use cURL to post XML data to my "server" page. It works great - I get the reply back I want, but only because I'm only making sure my server page sends data back. When I try to use the XML sent via cURL to my server page - it doesn't exist. It's like...
$variable = $HTTP_RAW_POST_DATA;
doesn't work properly. If I were to follow that line with:
if ($variable) {
echo "<xml>Worked</xml>";
}
else {
echo "<xml>Failed</xml>";
}
I get "<xml>Failed</xml>" as my results in cURL. But how do I get the other?!? I'm not sure if I'm doing it properly or if something else is up. My hosting provider has severly inhibited my ability to easily transfer data so I was thinking that could be an issue - but I wouldn't really think so. Hmm... help😕?! lol..