set_proxy() public method

Set the proxy to use for making requests.
public set_proxy ( string $proxy )
$proxy string (Required) The faux-url to use for proxy settings. Takes the following format: `proxy://user:pass@hostname:port`
 public function testSetProxyAndTimeout()
 {
     $httpCore = new RequestCore("http://www.baidu.com");
     $httpCore->set_proxy("1.0.2.1:8888");
     $httpCore->connect_timeout = 1;
     try {
         $httpResponse = $httpCore->send_request();
         $this->assertTrue(false);
     } catch (RequestCore_Exception $e) {
     }
 }