PHP Classes
elePHPant
Icontem

Only part of request result

Recommend this page to a friend!

      Advanced HTTP Client  >  All threads  >  Only part of request result  >  (Un) Subscribe thread alerts  
Subject:Only part of request result
Summary:Only part of request result
Messages:5
Author:Dmytro Zarezenko
Date:2007-07-29 21:17:07
Update:2011-03-07 10:09:14
 

  1. Only part of request result   Reply   Report abuse  
Picture of Dmytro Zarezenko Dmytro Zarezenko - 2007-07-29 21:17:07
Hi, I am using your PHP class "Advanced HTTP Client" and have some problem.

I wrote:

$requestData= array ("a" => 10, "b" => 10, "c" => 15);

$http_client = new http( HTTP_V11, true );
$http_client->host = 'somehost.com';
$status = $http_client->post( '/dir/test.php', $requestData, false);
if ( $status == HTTP_STATUS_OK ) {

print ( $http_client->get_response_body() );

// some actions with $http_client->get_response_body()
}
else {

print( "An error occured while requesting!\n" );
print_r( $http_client );
}
$http_client->disconnect();
unset( $http_client );

But $http_client->get_response_body() returns only some part of the result.
How I can get all result of the HTTP request?
How I can fix this problem?

  2. Re: Only part of request result   Reply   Report abuse  
Picture of Dmytro Zarezenko Dmytro Zarezenko - 2007-07-29 21:27:06 - In reply to message 1 from Dmytro Zarezenko
Only first 2722 simbols of requwest result.

  3. Re: Only part of request result   Reply   Report abuse  
Picture of Stefano Costantini Stefano Costantini - 2009-11-15 20:04:42 - In reply to message 2 from Dmytro Zarezenko
I have the same problem, how to solve it?


  4. Re: Only part of request result   Reply   Report abuse  
Picture of Ferran Sarrió Ferran Sarrió - 2010-08-20 11:14:28 - In reply to message 1 from Dmytro Zarezenko
Same probleme here.

  5. Re: Only part of request result   Reply   Report abuse  
Picture of Pavel Pavel - 2011-03-07 10:09:15 - In reply to message 1 from Dmytro Zarezenko
+1