cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: get error_state

From: Daniel Stenberg <daniel_at_haxx.se>
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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET