Skip to content

Instantly share code, notes, and snippets.

@cosenal
Created April 21, 2015 05:27
Show Gist options
  • Save cosenal/60426c6454a1b4f171f6 to your computer and use it in GitHub Desktop.
Save cosenal/60426c6454a1b4f171f6 to your computer and use it in GitHub Desktop.
guzzletest for tuskkk___
<?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