cURL / Mailing Lists / curl-users / Single Mail

curl-users

get error_state

From: <levchenko.ks_at_nsk.vtb24.ru>
Date: Mon, 9 Feb 2009 14:29:03 +0300

Help, plz.
Which key to run curl, that he only returned an error code?
For example,
$error=`curl URL`;
<<HTTP/1.1 401 Unauthorized
<<WWW-Authenticate: Basic realm="HTTP Authentication"
<<Connection: close
print error;
<<401

,

5440 24 .

. 3-2519, (383)249-24-32

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-02-09