curl-users
Logging into mydomain.com
Date: Sun, 22 Nov 2009 13:31:00 -0500
> Hi Ralph;
>
> I'm using the -b option -- cookies seem to be set and replaced OK.
>
> Here is my command and the output generated.
Hey Ralph;
I've been digging into this some more this morning. Re-reading the man page
and sections 13/14 of the tutorial (Using cURL to automate HTTP jobs), and
the FAQs page.
I stumbled across another mydomain.com login page that uses different form
variables (one of which is "siteid"). When I added that and removed "redir"
from my -d option, the login works.
The trail of my login output now is:
-----------------------------------
< P3P: policyref="/p3p/policyreferences.xml",CP="CAO CURa ADMa PSAa PSDa
OUR IND PHY ONL UNI NAV INT DEM"
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
* Replaced cookie PHPSESSIDBAK="olv3blnf6af4gt1le6qu9h90r2" for domain
secure.mydomain.com, path /, expire 0
< Set-Cookie: PHPSESSIDBAK=olv3blnf6af4gt1le6qu9h90r2; path=/
* Replaced cookie PHPSESSID="635055hm92qvt33oof0c61gk46" for domain
secure.mydomain.com, path /, expire 0
< Set-Cookie: PHPSESSID=635055hm92qvt33oof0c61gk46; path=/
* Replaced cookie PHPSESSIDBAK="635055hm92qvt33oof0c61gk46" for domain
secure.mydomain.com, path /, expire 0
< Set-Cookie: PHPSESSIDBAK=635055hm92qvt33oof0c61gk46; path=/
* Added cookie siteidcookie="20788" for domain mydomain.com, path /, expire
1259272890
< Set-Cookie: siteidcookie=20788; expires=Thu, 26-Nov-2009 22:01:30 GMT;
path=/; domain=.mydomain.com; secure
< Location: /account/am/index.php
< Content-Length: 1
< 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 am also able to get another page with a 2nd curl command, so... it looks
like I'm on my way.
Gotta go for now and get ready for dem' Bengals -- WHO DEY!!!
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