Created
September 21, 2013 09:00
-
-
Save anonymous/6648750 to your computer and use it in GitHub Desktop.
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_once 'vendor/autoload.php'; | |
use Guzzle\Http\Client; | |
$client = new Client('http://192.168.0.5:5280'); | |
$data = array( | |
'username' => 'foo', | |
'password' => 'bar', | |
'server' => 'boese-ban.de', | |
'ip' => '127.0.0.1', | |
'mail' => '[email protected]', | |
'auth_token' => 'ZvO9Ca4Bseaevt4vEAQD6aVW', | |
); | |
$request = $client->post('/register_account/', array( | |
'Host','boese-ban.de:5280', | |
'Content-Type','application/encoded', | |
'Content-Transfer-Encoding','base64', | |
), base64_encode(json_encode($data))); | |
$response = $request->send(); | |
echo $response->getBody(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment