Created
April 8, 2013 16:40
-
-
Save adrienbrault/5338309 to your computer and use it in GitHub Desktop.
Download a file using guzzle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$client = ...; | |
$response = $client->get('http://guzzlephp.org/index.html', null, tmpfile())->send(); | |
$response->getStream(); // Magic comes after |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This one does not work anymore with the current Guzzle distribution ...