tags:

views:

117

answers:

1

I am having difficulties figuring this out. I can see i am posting XML and i see the length of it but i cannot figure out how to display or access the POST DATA

CONTENT-TYPE: text/xml<br />
CONTENT-LENGTH: 640<br />

separately i have

curl -k -H 'content-type: text/xml' -d 'XML_DATA_HERE' https://ip/page.php
+3  A: 

Try

$xml = file_get_contents('php://input');

http://docs.php.net/manual/en/wrappers.php.php says:

php://input allows you to read raw POST data. It is a less memory intensive alternative to $HTTP_RAW_POST_DATA and does not need any special php.ini directives. php://input is not available with enctype="multipart/form-data".
VolkerK
correct i also found $HTTP_RAW_POST_DATA after looking the above up
An employee