©
このドキュメントでは、 php中国語ネットマニュアル リリース
(PECL pecl_http 0.14.0-1.4.1)
HttpRequest::addRawPostData — Add raw post data
$raw_post_data
)Add raw post data, leaving previously set raw post data unchanged.
Affects only POST and custom requests.
raw_post_data
the raw post data to concatenate
成功时返回 TRUE
, 或者在失败时返回 FALSE
。
[#1] mahdi at ghadamyari dot com [2011-06-17 02:02:30]
<?php
$r = new HttpRequest;
$r->addRawPostData('name=myname&website=mysite&comment=mytext');
?>
[#2] Patrick Mackinlay [2009-07-25 08:26:15]
In PECL::HTTP/1.6.3 (PHP/5.2.10) this does not work, it sets the raw put data. Use setRawPostData