cURL / Mailing Lists / curl-users / Single Mail

curl-users

Logging into mydomain.com

From: Charles <cecrume_at_gmail.com>
Date: Sun, 22 Nov 2009 10:19:46 -0500

> If you're not doing this as well: -b "c:\curl2\jar.txt" then your
> cookies file won't be loaded prior to doing the page fetch. So, the
> server
> is essentially correct - cookies appear not to be enabled because you're
> not
> loading any to send.
>
> Ralph Mitchell

Hi Ralph;

I'm using the -b option -- cookies seem to be set and replaced OK.

Here is my command and the output generated.

-------------------------------
Microsoft(R) Windows NT(TM)
(C) Copyright 1985-1996 Microsoft Corp.

C:\WINNT\system32>cd \curl2

C:\curl2>curl --anyauth -b "c:\curl2\jar.txt" -c
"c:\curl2\jar.txt" -k --trace - -v -d
"login=XXX&pass=YYY&redir=/account/am/index.php&noregister=&submit=Log
in" --url https://secure.mydomain.com/account/login.php
* About to connect() to secure.mydomain.com port 443
* Trying 64.85.73.73... connected
* Connected to secure.mydomain.com (64.85.73.73) port 443
* error setting certificate verify locations, continuing anyway:
* CAfile: /usr/local/share/curl/curl-ca-bundle.crt CApath: none
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server key exchange (12):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
* subject: /C=US/O=secure.mydomain.com/OU=GT87605503/OU=See
www.geotrust.com/resources/cps (c)09/OU=Domain Control Validated - QuickSSL
Premium(R)/CN=secure.mydomain.com
* start date: 2009-03-18 22:32:55 GMT
* expire date: 2010-03-19 22:32:55 GMT
* common name: secure.mydomain.com (matched)
* issuer: /C=US/O=Equifax/OU=Equifax Secure Certificate Authority
* SSL certificate verify result: error number 1 (20), continuing anyway.
> POST /account/login.php HTTP/1.1
> User-Agent: curl/7.15.1 (i586-pc-mingw32msvc) libcurl/7.15.1
> OpenSSL/0.9.7e zlib/1.2.2
> Host: secure.mydomain.com
> Accept: */*
> Content-Length: 85
> Content-Type: application/x-www-form-urlencoded
>
> login=XXX&pass=YYY&redir=/account/am/index.php&noregister=&submit=Log
> inHTTP/1.1 302 Found
< Date: Sun, 22 Nov 2009 15:12:34 GMT
< Server: Apache
< P3P: policyref="/p3p/policyreferences.xml",CP="CAO CURa ADMa PSAa PSDa OUR
IND PHY ONL UNI NAV INT DEM"
* Added cookie PHPSESSID="olv3blnf6af4gt1le6qu9h90r2" for domain
secure.mydomain.com, path /, expire 0
< Set-Cookie: PHPSESSID=olv3blnf6af4gt1le6qu9h90r2; path=/
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
* Added cookie PHPSESSIDBAK="olv3blnf6af4gt1le6qu9h90r2" for domain
secure.mydomain.com, path /, expire 0
< Set-Cookie: PHPSESSIDBAK=olv3blnf6af4gt1le6qu9h90r2; path=/
< Location:
https://secure.mydomain.com/generror.php?id=3&page=/account/login.php&file=/home/secure.registerapi.com/common/partner.php&line=191
< Content-Length: 0
< Content-Type: text/html
* Connection #0 to host secure.mydomain.com left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

C:\curl2>
-------------------------------

I've checked and double-checked the fields on mydomain's login page and
think I have everything correct and in the correct order.

Any other advice on what to look for so I can figure this out?

Thanks,

Charles...

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-22