cURL / Mailing Lists / curl-users / Single Mail


RE: get error_state

From: <>
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:
Received on 2009-02-10