curl-users
Re: curl with .htaccess files
Date: Thu, 17 Mar 2005 23:54:00 +0200
On Thu, Mar 17, 2005 at 11:55:36AM -0800, Ryan wrote:
> >> I need to load a page that resides in a directory with a .htaccess file. Is
> >> it possible for curl to authenticate so I can load the page?
> >
> >Yes it is. But you can configure different kinds of authentications with
> >.htaccess so we can't tell you exactly what options you need. I suggest >you
> >read the curl man page.
>
>
> Ok, I read through the man page again. I still can't figure out how to pass
> my username and password. I grabbed the HTTP header and this is what it
> returns. Looks like it is using basic authentication.
>
> HTTP/1.1 401 Authorization Required
> Date: Thu, 17 Mar 2005 19:49:06 GMT
> Server: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2
> mod_bwlimited/1.4 PHP/4.3.10 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.6b
> WWW-Authenticate: Basic realm="meshtrak_cvs"
> Content-Type: text/html; charset=iso-8859-1
>
You probably want --basic
Received on 2005-03-17