
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?