Created
April 21, 2015 05:27
-
-
Save cosenal/60426c6454a1b4f171f6 to your computer and use it in GitHub Desktop.
guzzletest for tuskkk___
This file contains hidden or 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 | |
require 'vendor/autoload.php'; | |
use GuzzleHttp\Client; | |
$client = new Client(); | |
$response = $client->get('http://localhost/owncloud/remote.php/webdav/welcome.txt', [ | |
'auth' => ['admin', 'password'] | |
]); | |
echo $response->getBody(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment