HttpRequest::addRawPostData

(PECL pecl_http 0.14.0-1.4.1)

HttpRequest::addRawPostDataAdd raw post data

Description

public bool HttpRequest::addRawPostData ( string $raw_post_data )

Add raw post data, leaving previously set raw post data unchanged.

Affects only POST and custom requests.

Parameters

raw_post_data

the raw post data to concatenate

Return Values

Returns TRUE on success or FALSE on failure.

[an error occurred while processing the directive]

Коментарии

Автор:
In PECL::HTTP/1.6.3 (PHP/5.2.10) this does not work, it sets the raw put data. Use setRawPostData
2009-07-25 11:26:15
http://php5.kiev.ua/manual/ru/httprequest.addrawpostdata.html
<?php
$r 
= new HttpRequest;
$r->addRawPostData('name=myname&website=mysite&comment=mytext');
?>
2011-06-17 05:02:30
http://php5.kiev.ua/manual/ru/httprequest.addrawpostdata.html

    Поддержать сайт на родительском проекте КГБ