By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,826 Members | 815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,826 IT Pros & Developers. It's quick & easy.

$_POST empty, $HTTP_RAW_POST_DATA filled

P: n/a
We receive a POST message being a multipart/mixed type. The
$HTTP_RAW_POST_DATA shows it perfectly. However, I expected the $_POST to be
filled as well, which is empty. We're using php 4.3.3.

Any ideas?
Thx.
Marc


Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

Marc Lambrichs wrote:
We receive a POST message being a multipart/mixed type. The
$HTTP_RAW_POST_DATA shows it perfectly. However, I expected the $_POST to be
filled as well, which is empty. We're using php 4.3.3.


AFAIK, $_POST only gets filled if the POST type is
"application/x-www-form-urlencoded". Otherwise you have to decode it by
hand.

Luke

Jul 17 '05 #2

P: n/a

"Marc Lambrichs" <ma***@melange-it.nl> wrote in message
news:3f***********************@news.xs4all.nl...
We receive a POST message being a multipart/mixed type. The
$HTTP_RAW_POST_DATA shows it perfectly. However, I expected the $_POST to be filled as well, which is empty. We're using php 4.3.3.

Any ideas?
Thx.
Marc


I've not tried that yet but if I were I'd shove your form data through to
phpinfo(); and check where it turns up there...
Jul 17 '05 #3

P: n/a
"Marc Lambrichs" <ma***@melange-it.nl> wrote
in message news:<3f***********************@news.xs4all.nl>...

We receive a POST message being a multipart/mixed type. The
$HTTP_RAW_POST_DATA shows it perfectly. However, I expected
the $_POST to be filled as well, which is empty.


What about $_FILES?

Cheers,
NC
Jul 17 '05 #4

P: n/a
Marc Lambrichs wrote on Monday 06 October 2003 20:11:
We receive a POST message being a multipart/mixed type. The
$HTTP_RAW_POST_DATA shows it perfectly. However, I expected the $_POST to
be filled as well, which is empty. We're using php 4.3.3.


Just a side note - if you are using 4.3.3, it's better to use php://input
instead of $HTTP_RAW_POST_DATA. See

http://us4.php.net/wrappers.php
--
Business Web Solutions
ActiveLink, LLC
www.active-link.com/intranet/
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.