shuber / curl

A basic CURL wrapper for PHP
MIT License
462 stars 179 forks source link

Request response add curl_getinfo #12

Open 2byte opened 10 years ago

2byte commented 10 years ago

if ($response) { $response = new CurlResponse($response); $response->info = curl_getinfo($this->request); } else { $this->error = curl_errno($this->request).' - '.curl_error($this->request); }