downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

http_get_request_headers> <http_get_request_body_stream
Last updated: Fri, 13 Nov 2009

view this page in

http_get_request_body

(PECL pecl_http >= 0.10.0)

http_get_request_bodyリクエストの本文を文字列として取得する

説明

string http_get_request_body ( void )

生のリクエスト本文 (例: POST あるいは PUT データ) を取得します。

リクエストメソッドが POST 以外の場合は、 http_get_request_body_stream() の後にこの関数を使用することはできません。

パラメータ

返り値

成功した場合は生のリクエスト本文を文字列で返します。 失敗した場合は NULL を返します。

参考



add a note add a note User Contributed Notes
http_get_request_body
neil at foo dot co dot za
29-Feb-2008 09:40
Like php://input and http_get_request_body_stream(), http_get_request_body() doesn't seem to work with enctype="multipart/form-data".
osborn dot steven at gmail dot com
23-Aug-2007 06:01
For those of you without the HTTP extension, try:
<?php
  $body
= @file_get_contents('php://input');
?>

http_get_request_headers> <http_get_request_body_stream
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites