cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: log in with authentication problem

From: Guirong Wang <guirong2004_at_yahoo.com>
Date: Tue, 17 Apr 2007 12:44:09 -0700 (PDT)

Thank you very much Dan and Daniel. It works perfectly with -u option! But after I used the -v option to get more details for this web site, another application, which originally worked fine with just -d option, now always gives the following message:
  ************************
  curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify faile
d
More details here: http://curl.haxx.se/docs/sslcerts.html
  curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). The default
 bundle is named curl-ca-bundle.crt; you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
**********************
  I have to use -k option to get it work again. Is there any way to get it work again with only -d not -k option?
   
  Thank you very much.
  Karen
curl-users-request_at_cool.haxx.se wrote:
  Send curl-users mailing list submissions to
curl-users_at_cool.haxx.se

To subscribe or unsubscribe via the World Wide Web, visit
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
or, via email, send a message with subject or body 'help' to
curl-users-request_at_cool.haxx.se

You can reach the person managing the list at
curl-users-owner_at_cool.haxx.se

When replying, please edit your Subject line so it is more specific
than "Re: Contents of curl-users digest..."

Today's Topics:

1. Re: log in with authentication problem (Daniel Stenberg)
2. Re: log in with authentication problem (Dan Fandrich)
3. Re: Missing curl.h ubuntu -Edgy (michael mittiga)
4. Can I use curl for Apache AJP/1.3 status check?
(Saberhagen Nathan)

----------------------------------------------------------------------

Message: 1
Date: Mon, 16 Apr 2007 22:40:53 +0200 (CEST)
From: Daniel Stenberg
Subject: Re: log in with authentication problem
To: the curl tool
Message-ID:

Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Mon, 16 Apr 2007, Guirong Wang wrote:

> < WWW-Authenticate: Basic realm="FileDriveWWW"

This header says that the server wants credentials sent to it using HTTP Basic
auth, which you do with curl -u.

-- 
Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
------------------------------
Message: 2
Date: Mon, 16 Apr 2007 13:55:29 -0700
From: Dan Fandrich 
Subject: Re: log in with authentication problem
To: curl-users_at_cool.haxx.se
Message-ID: <20070416205528.GA30800_at_coneharvesters.com>
Content-Type: text/plain; charset=us-ascii
On Mon, Apr 16, 2007 at 01:46:03PM -0700, Guirong Wang wrote:
> I am trying to log into a web page with the corect user name and password using
> the following command (on Linux):
> curl -o temp.html -d "user=username&password=\$password*\$"
> https://secure.site.com
> but failed with the following message in the temp.html file:
[...]
> HTTP/1.1 401 Authorization Required
This error code indicates that the site expects HTTP login credentials,
not an application-level login which is what you tried to do. Use
the -u option to set your name and password.
>>> Dan
-- 
http://www.MoveAnnouncer.com The web change of address service
Let webmasters know that your web site has moved
------------------------------
Message: 3
Date: Mon, 16 Apr 2007 23:45:20 -0400
From: "michael mittiga" 
Subject: Re: Missing curl.h ubuntu -Edgy
To: "the curl tool" 
Message-ID:
Content-Type: text/plain; charset="iso-8859-1"
That seemed to do the trick, thank you for your help!
On 4/16/07, Daniel Stenberg wrote:
>
> On Mon, 16 Apr 2007, michael mittiga wrote:
>
> > I am trying to install Perl Module WWW-Curl-2.0, Makefile.PLfails, any
> > help will be greatly appreciated.
> > What version of curl or curl lib should I have?
>
> You probably need a *-dev version of (lib)curl to get the headers
> installed.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cool.haxx.se/pipermail/curl-users/attachments/20070416/1dcbcef2/attachment.html 
------------------------------
Message: 4
Date: Tue, 17 Apr 2007 18:43:44 +0900
From: "Saberhagen Nathan" 
Subject: Can I use curl for Apache AJP/1.3 status check?
To: curl-users_at_cool.haxx.se
Message-ID:
Content-Type: text/plain; charset="iso-8859-1"
I'm using Apache web server(2.0.47) & Apache Tomcat (5.5.20).
They are tied with mod_jk, AJP/1.3.
Restarting the server as follows:
1. stop apache
2. stop tomcat
3. deploy fixed/updated web application
4. startup tomcat
5. (Not now)
6. startup apache
between 4 and 6, before starting apache, I want to check tomcat properly
started via AJP;
if not, do not start apache.
- Can I use curl on process 5?
- And how can it be?
(assume AJP port is 8102)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cool.haxx.se/pipermail/curl-users/attachments/20070417/f745be1e/attachment-0001.htm 
------------------------------
_______________________________________________
curl-users mailing list
curl-users_at_cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
End of curl-users Digest, Vol 20, Issue 17
******************************************
       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.
Received on 2007-04-17