curl-users
Re: get error_state
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 9 Feb 2009 14:30:22 +0100 (CET)
Date: Mon, 9 Feb 2009 14:30:22 +0100 (CET)
On Mon, 9 Feb 2009, кЕБВЕМЙН йХПХКК яЕПЦЕЕБХВ wrote:
> 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
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!
-- / daniel.haxx.se
-------------------------------------------------------------------
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