Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP's lightweight HTTP client
branch: master

Merge pull request #170 from CEikermann/request-exception

RequestException extends ClientException
latest commit 487760b05d
@kriswallsmith authored

Build Status

Buzz is a lightweight PHP 5.3 library for issuing HTTP requests.


$browser = new Buzz\Browser();
$response = $browser->get('');

echo $browser->getLastRequest()."\n";
echo $response;

You can also use the low-level HTTP classes directly.


$request = new Buzz\Message\Request('HEAD', '/', '');
$response = new Buzz\Message\Response();

$client = new Buzz\Client\FileGetContents();
$client->send($request, $response);

echo $request;
echo $response;
Something went wrong with that request. Please try again.