cURL / Mailing Lists / curl-users / Single Mail

curl-users

can't get POST to work - please help

From: John Thomas <JThomas_at_BCLC.com>
Date: Fri, 12 Nov 2004 12:22:23 -0800

Hi,

I'm trying to emulate the post to the following web page using cURL:
https://ftp.businessbanking.cibc.com/template/login

$ curl "-V"
curl 7.12.1 (ALPHA-HP-VMS) libcurl/7.12.1 OpenSSL/0.9.7d
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: NTLM SSL

The best I can come up with is the following: (VMS requires the weird
quotation mark syntax)

$ 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 https://ftp.businessbanking.cibc.com/template/login

Using my web browser, this returns a page identical to the original page
with an 'ERROR: Login failed' message included. With cURL there is no
'ERROR: Login failed' message, so it seems that it's not even trying to
log me in.

Any advice would be appreciated.

Thanks,
John

"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