0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 13.59.82.60


Current Path : /var/www/student/gfgcg/razorpay/razorpay-php/libs/Requests-1.6.1/examples/
Upload File :
Current File : /var/www/student/gfgcg/razorpay/razorpay-php/libs/Requests-1.6.1/examples/basic-auth.php

<?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);