469,323 Members | 1,596 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

$_POST empty, $HTTP_RAW_POST_DATA filled

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
4 13785
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

"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
"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
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.

Similar topics

10 posts views Thread by Jack | last post: by
7 posts views Thread by Dan | last post: by
14 posts views Thread by billy.becker | last post: by
5 posts views Thread by lorenzdominic_ | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.