Re: problem with HTTP_Client::post
| From: | Leo Lutz | Date: | Sun, 30 Oct 2005 01:25:35 +0000 |
| Subject: | Re: problem with HTTP_Client::post | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21698@lists.php.net to get a copy of this message | ||
Hey Kato,
On 10/29/05, Fumiaki Kato <kato@f.email.ne.jp> wrote:
> Hi Leo,
> thanks for the quick response!
>
> I wrote a "test.php"
> <?php
> var_dump($_POST);
> ?>
>
> then I post
>
> $url="http://example.com/test.php";
> $data="abc=123&cde=567";
>
> $httpClient = new HTTP_Client();
> $httpClient->post($url, $data);
>
> What kind of method there is to receive the response?
>
I think you need to look at the package HTTP_Request. It will do POSTs
and return the results.
http://pear.php.net/manual/en/package.http.http-request.php
--Leo