curl-users
Re: Curl command line + HTTPS + SSL prompt
Date: Tue, 31 Mar 2009 16:37:51 -0700 (PDT)
Hi Daniel,
--- On Tue, 3/31/09, Adrianyong <h_tere2000_at_yahoo.com> wrote:
From: Adrianyong <h_tere2000_at_yahoo.com>
Subject: Re: Curl command line + HTTPS + SSL prompt
To: curl-users_at_cool.haxx.se
Date: Tuesday, March 31, 2009, 3:19 PM
Section 13 and 14 is very informative..but their explanation is very abstract..
some examples on how to login to an SSL login would be appreciated.
unfortunately... examples are very few..
The website that I'm logging into provides a self-signing
certificate..using
Internet Explorer I'm able to login. The certificate from that domain
is actually invalid because it is stated "Issue to" refering to another website
however I'm able to by pass the login screen and access an inner page by specifying. The next page https URL
e.g.
curl -b username=administrator -d password=password-d submit=submit -k https://XXX.xxx.XX.XXX/Web_Site/admin/left.jsp
--trace traceamex_https19.txt
i think this is a good things.. because ...authetication issue has been solved..
however i need to access a hyperlink contain in that page.
and the link is
https://XXX.xxx.XX.XXX/Web_Site/UploadAction?action=search&selectedCompany=&selectedUploadType=&uploadType=NCRI&companyName=&member=
Please notice... .../UploadAction?action...... this link/url uses an engine to translate request to http file paths...
e.g. curl -k --url https://116.12.227.71/SMEBis/UploadAction.jsp?action=prepareSearch --trace-ascii preparesearch -c roast.txt.
Please note that UploadAction.jsp 's jsp clause does not exist at
all
C:\curl_d\bin>curl.bat
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>SME Credit Bureau (Contributor)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/css.css" rel="stylesheet" type="text/css">
</head>
<BODY>
<P><BR><BR><BR>
<BR><strong><font color="#B45618" size="2"> Error On Page. Plea
se contact administrator and try again later.
<BR><BR> </font></strong></P>
</BODY>
</HTML>
How does curl interact with a parsed query? And most of all how do i upload a file using multiple command lines?.
--- On Fri, 3/27/09, curl-users-request_at_cool.haxx.se <curl-users-request_at_cool.haxx.se> wrote:
From: curl-users-request_at_cool.haxx.se <curl-users-request_at_cool.haxx.se>
Subject: curl-users Digest, Vol 43, Issue 30
To: curl-users_at_cool.haxx.se
Date:
Friday, March 27, 2009, 7:00 PM
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: Curl command line + HTTPS + SSL prompt (Daniel Stenberg)
----------------------------------------------------------------------
Message: 1
Date: Fri, 27 Mar 2009 11:20:36 +0100 (CET)
From: Daniel Stenberg <daniel_at_haxx.se>
Subject: Re: Curl command line + HTTPS + SSL prompt
To: the curl tool <curl-users_at_cool.haxx.se>
Message-ID: <alpine.DEB.1.10.0903271119360.2958_at_yvahk2.pbagnpgbe.fr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On
Fri, 27 Mar 2009, Adrianyong wrote:
> I tried the test code many times. But i can't seem to bring it to the next
> page or to login at the same time. Any ideas? I've google a lot of websites,
> and tweaked the code many times. I posted my various attempts below.
You most likely can't do it with just a single command line.
See http://curl.haxx.se/docs/httpscripting.html section 13 and 14
-- / daniel.haxx.se ------------------------------ _______________________________________________ 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 43, Issue 30 ******************************************
-------------------------------------------------------------------
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-04-01