cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: get error_state

From: ìÅ×ÞÅÎËÏ ëÉÒÉÌÌ óÅÒÇÅÅ×ÉÞ <levchenko.ks_at_nsk.vtb24.ru>
Date: Tue, 10 Feb 2009 06:31:08 +0300

 
>This means you need to provide your user name and password using "Basic"
>authentication to be allowed to get that resource.

>Lookup the -u option!

No, it's for example.
How me get only error code in variable?
Server returned error, and variable is empty.
I want:
$error=`curl URL`;
 <<HTTP/1.1 [Code error]
 <<....
 print error;
 <<[Code error]

P.S. Sorry my english.
-------------------------------------------------------------------
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-10