Friday, June 29, 2012

Re: CakePHP 2.0 HttpSocket and HttpResponse empty

On 28/06/12 09:46, Bui Minh Truong wrote:
> Hi all,
>
> Sorry if there was any thread about my problem (I did search that
> problem but I was unlucky).
>
> I used instruction of HttpSocket on this page:
>
> http://book.cakephp.org/2.0/en/core-utility-libraries/httpsocket.html
>
> My request was created and it actually requested target host, but
> there was an empty response.
> I debugged 2 classes of CakePHP : HttpSocket and HttpResponse, then I
> found that:
>
> In HttpSocket : (\lib\Cake\Network\Http) Line 397:
> $this->response = new $responseClass($response);
> $response is not empty but $this->response is empty,
> though $responseClass is HttpResponse.
>
> In HttpResponse: no constructor called.
>
> Could anyone help us to understand this problem.
>
> Thank you,
> M.Truong.
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and
> help others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this
> group at http://groups.google.com/group/cake-php

Do you have your own HttpResponse class in your app or plugins that
could be overriding the one from the core ?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: