PHP Classes

File: includes/src/vendor/rmccue/requests/docs/proxy.md

Recommend this page to a friend!
  Classes of Subin Siby   Lobby   includes/src/vendor/rmccue/requests/docs/proxy.md   Download  
File: includes/src/vendor/rmccue/requests/docs/proxy.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Lobby
Web OS to install and run Web applications
Author: By
Last change:
Date: 8 years ago
Size: 527 bytes
 

Contents

Class file image Download

Proxy Support

You can easily make requests through HTTP proxies.

To make requests through an open proxy, specify the following options:

$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:

$options = array(
	'proxy' => array( '127.0.0.1:3128', 'my_username', 'my_password' )
);
Requests::get('http://httpbin.org/ip', array(), $options);