note 87212 added to function.curl-error
| From: | paul at paulmcgarry dot com | Date: | Tue, 25 Nov 2008 01:00:44 +0000 |
| Subject: | note 87212 added to function.curl-error | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146898@lists.php.net to get a copy of this message | ||
For a 404 response to actually trigger an error as the example seems to be trying to demonstrate the
following option should be set:
curl_setopt($ch,CURLOPT_FAILONERROR,true);
As per http://curl.haxx.se/libcurl/c/libcurl-errors.html
CURLE_HTTP_RETURNED_ERROR (22)
This is returned if CURLOPT_FAILONERROR is set TRUE and the HTTP server returns an error code that
is >= 400. (This error code was formerly known as CURLE_HTTP_NOT_FOUND.)
----
Server IP: 203.88.112.190
Probable Submitter: 150.101.114.56
----
Manual Page -- http://www.php.net/manual/en/function.curl-error.php
Edit -- https://master.php.net/note/edit/87212
Del: integrated -- https://master.php.net/note/delete/87212/integrated
Del: useless -- https://master.php.net/note/delete/87212/useless
Del: bad code -- https://master.php.net/note/delete/87212/bad+code
Del: spam -- https://master.php.net/note/delete/87212/spam
Del: non-english -- https://master.php.net/note/delete/87212/non-english
Del: in docs -- https://master.php.net/note/delete/87212/in+docs
Del: other reasons-- https://master.php.net/note/delete/87212
Reject -- https://master.php.net/note/reject/87212
Search -- https://master.php.net/manage/user-notes.php