mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 17:19:59 +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
23
vendor/rmccue/requests/docs/proxy.md
vendored
Normal file
23
vendor/rmccue/requests/docs/proxy.md
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
Proxy Support
|
||||
=============
|
||||
|
||||
You can easily make requests through HTTP proxies.
|
||||
|
||||
To make requests through an open proxy, specify the following options:
|
||||
|
||||
```php
|
||||
$options = array(
|
||||
'proxy' => '127.0.0.1:3128'
|
||||
);
|
||||
Requests::get('http://httpbin.org/ip', array(), $options);
|
||||
```
|
||||
|
||||
If your proxy needs you to authenticate, the option will become an array like
|
||||
the following:
|
||||
|
||||
```php
|
||||
$options = array(
|
||||
'proxy' => array( '127.0.0.1:3128', 'my_username', 'my_password' )
|
||||
);
|
||||
Requests::get('http://httpbin.org/ip', array(), $options);
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue