Update authentication example to include error reason

Having just spend 10/20 mins trying to figure out what the error meant after copying this example I think it should include the error message by default.
This commit is contained in:
Pez Cuckow
2014-05-23 12:43:24 +01:00
parent 0481920ed3
commit 40acf9c370
+1 -1
View File
@@ -42,7 +42,7 @@ $curl->setCookie('key', 'value');
$curl->get('http://www.example.com/');
if ($curl->error) {
echo $curl->error_code;
echo "ERROR: " . $curl->error_code . ": " . $curl->error_message;
}
else {
echo $curl->response;