Well, Marcus.  Thanks to Mike I found out exactly how to do this.  I am
doing the same exact thing and now parsing throw  my xml message without
any problems.

You have to add a value in your php.ini (normally located in the
/usr/local/lib directory) file if it is turned off.  You can see if the
setting is turned off bye calling phpinfo().  This setting is called
"always_populate_raw_post_data" which will copy the POST (from the third
party client) as is without having to send it in the FORM style.  If
this value is turned off, add this[always_populate_raw_post_data = On
;] (no quotes or anything) to your php.ini file and reboot.  Once you
reboot, PHP automatically fills the $HTTP_RAW_POST_DATA variable and you
can use it as is.


Hopes this helps.


-----Original Message-----
From: Marcus Akre [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 27, 2003 3:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Trouble reading POST data that is not associated with a
value.


Hi.

I'm currently developing a system that accepts http requests containing 
xml data. A third-party application delivers the xml data in the post 
part of the http request. The post data is however not associated with
any name. So it cannot be indexed as normal with $_POST["key"]. I've
tried all kind of variations to write the post data to screen but it
always reports "", null or Array. The count of the $_POST array is 0. 
However the $_SERVER["CONTENT_LENGTH"] is between 300 and 400 bytes. The
data is there, but how can i access it?

The person that can help me solve this really saves my day. (And next 
two weeks. :)

Best regards

Marcus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to