here is the login sequence. there are a few separate page requests. i tested it on a friend's account and i managed to get the echo $data part to show the splash page where it shows the balances of the checking and savings.
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://online.wellsfargo.com:443/az1_ba1_on/cgi-bin/session.cgi?LOB=CONS&screenid=SIGNON&origination=Wib&userid=GONE&password=GONE&destination=AccountSummary");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "wellscookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "wellscookie.txt");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040608");
$data = curl_exec($ch);
$redir = preg_match("/<a href=\"(.*)\">/i", $data, $matches);
/**************************************************************************************/
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $matches[1]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "wellscookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "wellscookie.txt");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040608");
$data = curl_exec($ch);
$redir = preg_match("/CONTENT=\"1;URL=(.*)\"/i", $data, $matches);
/**************************************************************************************/
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $matches[1]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "wellscookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "wellscookie.txt");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040608");
$data = curl_exec($ch);
$redir = preg_match("/CONTENT=\"3;URL=(.*)\"/i", $data, $matches);
/**************************************************************************************/
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $matches[1]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "wellscookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "wellscookie.txt");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040608");
$data = curl_exec($ch);
$redir = preg_match("/CONTENT=\"3;URL=(.*)\"/i", $data, $matches);
/**************************************************************************************/
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $matches[1]);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "wellscookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "wellscookie.txt");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040608");
$data = curl_exec($ch);
echo $data;
?>
i was looking at some of the links once it is logged in. all the sessargs part seem to be encrypted links to the subsequent pages. im not sure if it is based on the session id or what, some seemd to be base64 encoded but even decoding wouldnt help. if you wanted to then jump from that page to the other summary pages, you can use regex like i did to match the url to the href link text such as clicking on "checking" or "savings" to see the account activity. anyway, that should get you started. if you have more trouble post back.