HttpRequest
在线手册:中文 英文
PHP手册

HttpRequest::addRawPostData

(PECL pecl_http 0.14.0-1.4.1)

HttpRequest::addRawPostDataAdd raw post data

说明

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.

参数

raw_post_data

the raw post data to concatenate

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.


HttpRequest
在线手册:中文 英文
PHP手册
PHP手册 - N: Add raw post data

用户评论:

mahdi at ghadamyari dot com (17-Jun-2011 10:02)

<?php
$r
= new HttpRequest;
$r->addRawPostData('name=myname&website=mysite&comment=mytext');
?>

Patrick Mackinlay (25-Jul-2009 04:26)

In PECL::HTTP/1.6.3 (PHP/5.2.10) this does not work, it sets the raw put data. Use setRawPostData