get_response_body ()

Get the HTTP response body from the request.

Access

public

Returns

Type

Description

string

The response body.

Examples

Display the response body of the request.

$http = new RequestCore('http://github.com/skyzyx/requestcore/raw/master/_tests/test_request.txt');
$http->send_request();

var_dump($http->get_response_body());
Result:
string(48) "abcdefghijklmnopqrstuvwxyz
0123456789
!@#$%^&*()"

Source

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback