For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > January 2005 > Re: [PEAR] PEAR::HTTP_REQUEST -> HTTP_CLIENT









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] PEAR::HTTP_REQUEST -> HTTP_CLIENT
Justin Patrin

2005-01-28, 3:59 pm

On Fri, 28 Jan 2005 13:40:38 +0100, hugo <hugo123fr@hotmail.com> wrote:
> For the inclusion, I correct it.
> For the quote, in fact I have quote but outlook had suppress it or maybe I
> made a mistake in my copy paste. But there are here ^^
>
> It's very strange because I added debug trace here :
>
> if (!PEAR::isError($res))
> {
> $response2 = $client->currentResponse();
> $bodyresponse2 = $response2['body'];
> }
> else
> {
> echo "Failed after post </BR>";


FYI, these should be <br/>, not </br>.

> echo "[".$res->getDebugInfo()."]</BR>";
> echo "[".$res->getMessage()."]</BR>";
> }
>
> And I get :
> Failed after post
> []
> [succeeded operation. ]
>
> If operation succeeded, I didn't notice it ^^


Try getting the last response and seeing what's in there. Also, try a
print_r of the entire client and see what you find. Lastly, check the
reposted bugs for HTTP_Client, HTTP_Request, and Net_Socket to see if
there's anything similar to your problem.
[color=darkred]
>
> ----- Original Message -----
> From: "Justin Patrin" <papercrane@gmail.com>
> To: "hugo" <hugo123fr@hotmail.com>
> Cc: <pear-general@lists.php.net>
>
> Sent: Thursday, January 27, 2005 10:00 PM
> Subject: Re: [PEAR] PEAR::HTTP_REQUEST -> HTTP_CLIENT
>
> with
> didn't
> connecting
> it's
> website

--
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com