mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 06:09:55 +09:00
Initial import of composer dependencies (--no-dev)
This commit is contained in:
parent
71fc952126
commit
546606b208
696 changed files with 54815 additions and 44 deletions
16
vendor/rmccue/requests/examples/basic-auth.php
vendored
Executable file
16
vendor/rmccue/requests/examples/basic-auth.php
vendored
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
<?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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue