Esempio n. 1
0
File: HTTP.php Progetto: techart/tao
 /**
  * @param string $uri
  *
  * @return int
  */
 protected function make_curl($uri)
 {
     $id = curl_init($uri);
     curl_setopt_array($id, Net_Agents_HTTP::option('curl_options'));
     curl_setopt_array($id, $this->options);
     return $id;
 }
Esempio n. 2
0
 public function pure_call(Net_HTTP_Request $request)
 {
     if (empty($this->agent)) {
         $this->agent = Net_Agents_HTTP::Agent();
     }
     $this->last_request = $request;
     $res = $this->agent->send($request);
     $this->last_response = $res;
     return $res;
 }