Re: retrieve POST body?
| From: | Richard Lynch | Date: | Fri, 20 Apr 2007 21:06:47 +0000 |
| Subject: | Re: retrieve POST body? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253391@lists.php.net to get a copy of this message | ||
On Thu, April 19, 2007 11:58 pm, Justin Frim wrote:
> Regarding some discussion a while back about putting in a feature
> request for obtaining the POST body...
>
> I can see the advantage of streaming the POST body directly to disk,
> because then you don't have to allocate a huge amount of memory for
> keeping a copy of the POST body in a variable. So maybe (and this is
> wishful thinking), a feature could be added to PHP where the entire
> POST
> body, unaltered, is streamed to a file in the same fasion as those
> individual temporary files referenced in the $_FILES[] array.
>
> Then for HTTP digest authenticated requests with integrity protection,
> I
> could just call md5_file() on this special file, and my world would be
> a
> whole lot simpler! (And any other script programmers, should they
> need
> to access the POST body for whatever reason, can just read the file
> and
> parse it however necessary. No gigantic memory overhead involved.)
This sounds like a perfectly reasonable Feature Request to this naive
reader...
http://bugs.php.net/
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?