In PECL::HTTP/1.6.3 (PHP/5.2.10) this does not work, it sets the raw put data. Use setRawPostData
(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
Retorna TRUE
em caso de sucesso ou FALSE
em caso de falha.
In PECL::HTTP/1.6.3 (PHP/5.2.10) this does not work, it sets the raw put data. Use setRawPostData
<?php
$r = new HttpRequest;
$r->addRawPostData('name=myname&website=mysite&comment=mytext');
?>