HttpRequest::addRawPostData

(PECL pecl_http 0.14.0-1.4.1)

HttpRequest::addRawPostDataAdd raw post data

Descrierea

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.

Parametri

raw_post_data

the raw post data to concatenate

Valorile întoarse

Întoarce valoarea TRUE în cazul succesului sau FALSE în cazul eșecului.

add a note add a note

User Contributed Notes 2 notes

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