mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +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
18
vendor/rmccue/requests/examples/proxy.php
vendored
Normal file
18
vendor/rmccue/requests/examples/proxy.php
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?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 via a proxy.
|
||||
$options = array(
|
||||
'proxy' => '127.0.0.1:8080', // syntax: host:port, eg 12.13.14.14:8080 or someproxy.com:3128
|
||||
// If you need to authenticate, use the following syntax:
|
||||
// 'proxy' => array( '127.0.0.1:8080', 'username', 'password' ),
|
||||
);
|
||||
$request = Requests::get('http://httpbin.org/ip', array(), $options );
|
||||
|
||||
// See result
|
||||
var_dump($request->body);
|
||||
Loading…
Add table
Add a link
Reference in a new issue