Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

$_POST empty, $HTTP_RAW_POST_DATA filled

5 views
Skip to first unread message

Marc Lambrichs

unread,
Oct 6, 2003, 11:11:34 PM10/6/03
to
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


Luke Ross

unread,
Oct 7, 2003, 4:36:05 AM10/7/03
to
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

Randell D.

unread,
Oct 7, 2003, 12:27:24 PM10/7/03
to

"Marc Lambrichs" <ma...@melange-it.nl> wrote in message
news:3f822f00$0$58714$e4fe...@news.xs4all.nl...

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


Nikolai Chuvakhin

unread,
Oct 7, 2003, 8:55:46 PM10/7/03
to
"Marc Lambrichs" <ma...@melange-it.nl> wrote
in message news:<3f822f00$0$58714$e4fe...@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

Zurab Davitiani

unread,
Oct 8, 2003, 4:05:58 AM10/8/03
to
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/

0 new messages