curl-users
Re: can't get POST to work - please help
Date: Fri, 12 Nov 2004 14:16:09 -0800
Here is the output. Note that the user and password are invalid - I'm
only trying right now to get the 'invalid login' response.
I'm wondering if it's a cookie problem or if I need to use the -F
option?
$ curl "-duser=bob&password=fish&switch=Log%20In" "-A Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1)"
"-k" "-L" "-I" "-v" "-b cookie.jar" "-c cookie.jar" -x proxyserver:8051
https://ftp.businessbanking.cibc.com/template/login
* About to connect() to proxyserver port 8051
* Trying ... * connected
* Connected to proxyserver (ECT request
* libcurl is now using a weak random seed!
* SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: /C=CA/ST=Ontario/L=Toronto/O=Canadian Imperial Bank of
Commerce/OU=CIBC Corporate Business
Banking1/CN=ftp.businessbanking.cibc.com
* start date: 2004-06-24 00:00:00 GMT
* expire date: 2005-06-24 23:59:59 GMT
* common name: ftp.businessbanking.cibc.com (matched)
* issuer: /C=US/O=RSA Data Security, Inc./OU=Secure Server
Certification Authority
* SSL certificate verify result: error number 1 (19), continuing anyway.
> POST /template/login HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Host: ftp.businessbanking.cibc.com
Pragma: no-cache
Accept: */*
Cookie: FDX=CLEAR
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
user=bob&password=fish&switch=Log%20In< HTTP/1.0 200 OK
HTTP/1.0 200 OK
< Date: Fri, 12 Nov 2004 22:06:22 GMT
Date: Fri, 12 Nov 2004 22:06:22 GMT
< Server: Apache/1.3.12 (Unix) mod_ssl/2.6.6 OpenSSL/0.9.6
SecureTransportWWW/3.5.12
Server: Apache/1.3.12 (Unix) mod_ssl/2.6.6 OpenSSL/0.9.6
SecureTransportWWW/3.5.12
* Replaced cookie FDX="CLEAR" for domain ftp.businessbanking.cibc.com,
path /, expire 0
< Set-Cookie: FDX=CLEAR; path=/
Set-Cookie: FDX=CLEAR; path=/
* Replaced cookie FDX="CLEAR" for domain ftp.businessbanking.cibc.com,
path /, expire 0
< Set-Cookie: FDX=CLEAR; path=/
Set-Cookie: FDX=CLEAR; path=/
< Pragma: no-cache
Pragma: no-cache
< Cache-Control: no-cache
Cache-Control: no-cache
< Expires: -1
Expires: -1
< Connection: close
Connection: close
< Content-Type: text/html; charset=UTF-8
Content-Type: text/html; charset=UTF-8
<html>
<head>
<!--STTAG--><title>Valicert SecureTransport Login
</title>
<SCRIPT LANGUAGE="JavaScript">
function FDX_Msg(msg) {
document.write(" \
<!--STTAG-->ERROR: \
<a class=\"LoginRed\">", msg, "</a>");
}
function PrintServerInfo(name, ver, build, host) {
document.write("<a class=\"HeadingValicert\"> <center> \
<!--STTAG-->Welcome to \
", host, " <br> ", name, "\ ", ver, " \
<!--STTAG-->build \
", build, "</center></a>");
}
</SCRIPT>
<!--STTAG--><!--English CSS-->
<style TYPE="text/css" name="english">
A:link {font-family: Arial, Helvetica; font-size: 10pt}
A:active {font-family: Arial, Helvetica; font-size: 10pt}
A:visited {font-family: Arial, Helvetica; font-size: 10pt}
A:hover {font-family: Arial, Helvetica; font-size: 10pt}
a.HeadingValicert
{
color: #666666;
font-family: MS Gothic;
font-size: 20pt;
font-weight: bold;
font-style:italic;
text-decoration: none;
}
a.HeadingST
{
color: #000099;
font-family: Arial, Helvetica;
font-size: 18pt;
font-weight: bold;
font-style:italic;
text-decoration: none;
}
a.LoginRed
{
color: #993333;
font-family: Arial, Helvetica;
font-size: 12pt;
font-weight: bold;
font-style:none;
text-decoration: none;
}
a.TextBold
{
color: #000000;
font-family: Arial, Helvetica;
font-size: 10pt;
font-weight: bold;
font-style:none;
text-decoration: none;
}
a.Text
{
color: #000000;
font-family: Arial, Helvetica;
font-size: 10pt;
font-style:none;
text-decoration: none;
}
TABLE.LoginBGColor{background-color:#639ACE; }
</style>
<!--Do not remove this line from here-->
<!--STTAG--><!--Japanese CSS
<style TYPE="text/css" name="japanese">
A:link {font-family: MS Gothic; font-size: 10pt;}
A:active {font-family: MS Gothic; font-size: 10pt;}
A:visited {font-family: MS Gothic; font-size: 10pt;}
A:hover {font-family: MS Gothic; font-size: 10pt;}
a.HeadingValicert
{
color: #666666;
font-family: MS Gothic;
font-size: 18pt;
font-weight: bold;
font-style:italic;
text-decoration: none;
}
a.HeadingST
{
color: #639ACE;
font-family: MS Gothic;
font-size: 18pt;
font-weight: bold;
font-style:none;
text-decoration: none;
}
a.LoginRed
{
color: #993333;
font-family: MS Gothic;
font-size: 12pt;
font-weight: bold;
font-style:none;
text-decoration: none;
}
a.TextBold
{
color: #000000;
font-family: MS Gothic;
font-size: 10pt;
font-weight: bold;
font-style:none;
text-decoration: none;
}
a.Text
{
color: #000000;
font-family: MS Gothic;
font-size: 10pt;
font-style:none;
text-decoration: none;
}
TABLE.LoginBGColor{background-color:#639ACE; }
</style>
<!--Do not remove this line from here-->
</head>
<BODY topmargin="0" rightmargin="0" marginwidth="0" marginheight="0"
bottommargin="0" leftmargin="0" bgcolor="#ffffff">
<!-- ST Heading and ValiCert Logo -->
<table cellspacing="0" cellpadding="0" border="0" height="40"
width="100%" bgcolor="#e6e6e6">
<tr><!-- The following added in order to display CIBC
logo-->
<td cellspacing="0" cellpadding="0" border="0"
align="left" valign="top" bgcolor="#FFFFFF">
<img border="0" alt="" height="87" width="672"
src="/icons/cibclogo.gif">
</td>
</tr>
<tr>
<td cellspacing="0" cellpadding="0" border="0"
height="40" width=100%" bgcolor="#FFFFFF">
<a class="HeadingST"> File Transfer
Service</a>
</td>
<tr>
</table>
<!-- Login, Password and Submit Form -->
<FORM method="post" action="/template/login"
enctype="application/x-www-form-urlencoded">
<table cellpadding="0" cellspacing="0" border="0" width="100%"
bgcolor="ffffff">
<tr>
<td valign="top" align="left" border="0"
cellpadding="0" cellspacing="0" width="100%">
<table valign="top" align="center" border="0"
cellpadding="0" cellspacing="0" width="100%">
<!--used to be server info now removed M.G.-->
<form method="post" action="/template/login"
enctype="application/x-www-form-urlencoded">
<tr>
<td align="left" border="0"
cellpadding="0" cellspacing="0" width="5%">
</td>
<td valign="top" align="left" border="0"
cellpadding="0" cellspacing="0" width="95%">
<br/>
<br/><br/><br/>
</td>
</tr>
<tr>
<td valign="top" align="right"
border="0" cellpadding="0" cellspacing="0" width="12%">
<a class="LoginRed">
<!--STTAG-->Login
</a>
<br>
</td>
<td valign="top" align="left"
border="0" cellpadding="0" cellspacing="0" width="88%">
</td>
<tr>
<td align="right" width="12%">
<!-- Login Info -->
<br>
<a class="TextBold">
<!--STTAG-->Name:
</a>
</td>
<td align="left"
width="88%"><br> <INPUT LENGTH="10" SIZE="15"
NAME="user" TYPE
="text">
</td>
</tr>
<tr>
<td align="right" width="12%">
<!-- Password Info --> <br>
<a class="TextBold">
<!--STTAG-->Password:
</a>
</td>
<td align="left" width="88%">
<br> <INPUT LENGTH="10" SIZE="15" NAME="passwor
d" TYPE="password">
</td>
</tr>
<tr>
<td align="right" width="12%"> </td>
<td valign="top" align="left" border="0"
cellpadding="0" cellspacing="0" width="88%">
<!-- Submit Info -->
<br>
<!--STTAG--><INPUT VALUE="Log In"
NAME="switch" border="0" TYPE="submit">
<br>
<br>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<!-- ST Description-->
<table cellspacing="0" cellpadding="0" border="0"
height="20" width="100%" class="LoginBGColor">
<tr>
<td cellspacing="0" cellpadding="0" border="0"
valign="top" width="2%" align="left">
</td><td cellspacing="0" cellpadding="0"
border="0" valign="top" width="98%" align="left" colspan="4">
<br>
<a class="TextBold">
<!--STTAG-->Welcome to CIBC File Transfer Service
</a>
<br>
<br>
</td>
</tr>
<tr>
<td cellspacing="0" cellpadding="0" border="0"
valign="top"width="2%" align="left">
</td><td cellspacing="0" cellpadding="0"
border="0" valign="top" width="60%" align="left">
<a class="Text">
<!--STTAG--><!--STTAG-->CIBC.s File Transfer Service (FTS) provides
scripted solutions to a variety of file transmission needs by en
abling clients to schedule automated, unattended transmission of files
to and from CIBC over the Internet. Once the initial scriptin
g or scheduling of reports or data has been set up, the information will
then be automatically provided on a regular, recurring basi
s. No further manual intervention is required other than ongoing
password maintenance every 90 days.
</a>
</td><td cellspacing="0" cellpadding="0" border="0"
valign="top" width="38%" align="center" colspan="3">
</td>
</tr>
<tr>
<td cellspacing="0" cellpadding="0" border="0"
valign="top" width="2%" align="left" >
</td>
<td cellspacing="0" cellpadding="0" border="0"
valign="top" height="700" width="98%" align="left" colspan="4">
</td>
</tr>
</table>
</FORM>
</BODY>
</html>
* Closing connection #0
"THIS TRANSMISSION IS INTENDED ONLY FOR THE ADDRESSEE. IT MAY CONTAIN PRIVILEGED OR CONFIDENTIAL INFORMATION. ANY UNAUTHORIZED DISCLOSURE IS STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY US IMMEDIATELY SO THAT WE MAY CORRECT OUR TRANSMISSION. PLEASE DESTROY THE ORIGINAL. THANK YOU."
Received on 2004-11-12