Thursday, June 28, 2012

CakePHP 2.0 HttpSocket and HttpResponse empty

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: 


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

No comments: