HttpRequest::addRawPostData

(PECL pecl_http 0.14.0-1.4.1)

HttpRequest::addRawPostDataAdd raw post data

Beschreibung

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.

Parameter-Liste

raw_post_data

the raw post data to concatenate

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

add a note add a note

User Contributed Notes 2 notes

up
0
mahdi at ghadamyari dot com
3 years ago
<?php
$r
= new HttpRequest;
$r->addRawPostData('name=myname&website=mysite&comment=mytext');
?>
up
0
Patrick Mackinlay
4 years ago
In PECL::HTTP/1.6.3 (PHP/5.2.10) this does not work, it sets the raw put data. Use setRawPostData
To Top