mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
16 lines
No EOL
392 B
PHP
Executable file
16 lines
No EOL
392 B
PHP
Executable file
<?php
|
|
|
|
// First, include Requests
|
|
include('../library/Requests.php');
|
|
|
|
// Next, make sure Requests can load internal classes
|
|
Requests::register_autoloader();
|
|
|
|
// Now let's make a request!
|
|
$options = array(
|
|
'auth' => array('someuser', 'password')
|
|
);
|
|
$request = Requests::get('http://httpbin.org/basic-auth/someuser/password', array(), $options);
|
|
|
|
// Check what we received
|
|
var_dump($request); |