Exemplo n.º 1
0
// initialize http service
$httpProxy = new httpProxy();
// Globals
// -------
// You can change permissions and modify the behaviour of the Http Proxy class
// through the use of global methods.
//
// There are quite a few different options which can be customised including:
//
// - SSL Support
// - SSL Version Editing
// - Custom URL Validation (Regex)
// - User Agent Modification
// - JSONP Support
// - Native Support
$httpProxy->global__enableJsonP();
$httpProxy->global__enableNative();
// Header Options
// ---------------
// raw              - raw http headers to send with request
// mode             - return native, json, or in jsonp
// callback         - jsonp callback [jsonp mode]
// ssl              - SSL configuration for request (prevented on standard requests)
//    host          - Allow host verification (1)
//    peer          - Allow peer verification (1)
//    cert          - SSL certificate path
//    certType      - SSL certificate type (defaults to PEM)
//    version       - SSL version number to use
// fullStatus       - To output full status object with request (1), defaults to only http code
// followRedirects  - Follow page redirects (1)
// maxRedirects     - Max page redirects to follow