NYCPHP Meetup

NYPHP.org

[nycphp-talk] HTTP request body

Chris Shiflett shiflett at php.net
Wed Sep 1 12:22:48 EDT 2004


--- Jerry Kapron <nyphp at NewAgeWeb.com> wrote:
> Is there a simple way to access the *entire* HTTP request body
> as a single string?

Not very well with older versions. There's a configuration directive
(always_populate_raw_post_data), but the "always" is very misleading,
since it doesn't alwys work. :-)

I think it only populates the $HTTP_RAW_POST_DATA variable when the
Content-Type is unknown, or something weird like that.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
     Coming Fall 2004
HTTP Developer's Handbook - Sams
     http://httphandbook.org/
PHP Community Site
     http://phpcommunity.org/



More information about the talk mailing list