NYCPHP Meetup

NYPHP.org

[nycphp-talk] HTTP request body

Jerry Kapron nyphp at NewAgeWeb.com
Wed Sep 1 10:18:13 EDT 2004


>This isn't really an answer to your question, but there are easier
>ways of handling multiple file uploads than trying to parse the entire
>request body...

I know how to handle file uploads  :)
I'm trying to do something else.

>If you really need the full request body, you can use
>$HTTP_RAW_POST_DATA if you enable it in php.ini or using a setini()
>call. Or check out the php://input stream documentation.

I just found out that $HTTP_RAW_POST_DATA will not work for requests with
Content-Type: multipart/form-data and php://input is not available in PHP
versions prior to 4.3.

Thanks,
Jerry





More information about the talk mailing list