nilZhang / rolling-curl

Automatically exported from code.google.com/p/rolling-curl
0 stars 0 forks source link

No way to retrieve curl error #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
With the current library setup there is no way to retrieve an error from the 
curl handle as you would with curl_error(). In order to do so you need the curl 
handle. I would suggest either passing the curl handle to the response 
processor.
or
call curl_error($ch) on each handle, Modify Request object to have an error 
property, stow that error in there, when the response processor gets the 
response it can check request for errors and choose to handle them however it 
likes. 

The information in curl_getinfo is not sufficient to describe what when wrong 
when a curl request goes awry. 

Original issue reported on code.google.com by Patrick....@gmail.com on 19 Dec 2010 at 2:47