Export to GitHub

rolling-curl - issue #18

No way to retrieve curl error


Posted on Dec 19, 2010 by Happy Ox

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.

Comment #1

Posted on Dec 19, 2010 by Happy Ox

Comment deleted

Status: New

Labels:
Type-Defect Priority-Medium