[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] wget --post-data not getting past login page
From: |
loc |
Subject: |
[Bug-wget] wget --post-data not getting past login page |
Date: |
Wed, 2 May 2012 11:02:16 -0400 |
I'm trying to use wget with --post-data to log into a web site, but it
isn't getting past the login page. The login page is being downloaded
and saved when I run this command.
wget --debug --cookies=on --no-check-certificate --ca-directory=/etc/ssl/certs \
--save-cookies=cookies.txt --keep-session-cookies \
--post-data='txtUserID=<user>&txtUserPWD=<pass>&chkRememberID=1&NEXTURL=/&submit1=L
ogin' https://www.shellsource.com/NR/System/Access/ManualLogin.asp
If I try to load another page after, it also just downloads the login page.
wget --keep-session-cookies --no-check-certificate --load-cookies cookies.txt \
http://www.shellsource.com/ShellSource/MyAccount/AccountStatements/DisplayAcctHis
toryNew.htm?txtcoids=82818730
I have verified the cookie is being written to cookies.txt.
Here is the login page source, am I using all the correct fields
names? After the hidden field NEXTURL there is another hidden field,
but doesn't appear to have a name, could this be causing problems?
HTML>
<HEAD>
<title>Shell Source Login</title>
<script src="/js_scripts/b2b_CommonFunctions.js" language="javascript"></script>
<script language="JavaScript">
function SetFocus()
{
window.document.LoginFrm.txtUserID.focus()
}
</script>
<link rel=StyleSheet href="/css/b2b1.css">
</HEAD>
<body bgcolor="#003366" leftmargin="0" topmargin="0" onload="SetFocus()">
<form id="LoginFrm" name="LoginFrm" method="post"
action="ManualLoginSubmit.asp">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr><td width="100%" height="20%"> </td></tr>
<tr><td width="100%"><table border="0" cellpadding="0"
cellspacing="0" width="100%">
<tr><td width="25%"> </td><td width="60%"><table
width="100%"
border="0" cellpadding="0" cellspacing="0" class="content-table">
<tr><td class="blue2-padded" width="100%"
align="left"><span
class="text-instruct"><b>Login: </b></span></td></tr>
<tr><td class="blue3-padded" width="100%"><span
class="text-instruct">Please enter your Shell Source User Id and
Password.</span></td></tr>
<tr><td align="center" class="content-detail"
style="padding:5px"><table border="0" cellpadding="0" cellspacing="2"
width="80%">
<tr><td class="content-detail"
style="color:#003366" width="100%">
<div id="UserMsg" class="text-instruct"
style="color:#FF0000"></div>
</td></tr>
<tr><td width="100%" class="text-instruct"
style="color:#003366">
<table width="100%">
<tr>
<td
class="text-instruct" style="color:#003366"
align="left"><B>User Name :</b></td><td class="text-instruct"
style="color:#003366" align="left"><input class="text"
name="txtUserID" value=''></td>
</tr>
<tr>
<td
class="text-instruct" style="color:#003366"
align="left"><B>Password :</b></td><td class="text-instruct"
style="color:#003366" align="left"><input class="text" type='password'
name="txtUserPWD"></td>
</tr>
</table>
</td>
</tr>
<tr><td height="20" class="text" align="center"
colspan="2"></td></tr>
<tr><td height="20" class="text" align="center"
colspan="2"><table
border="0" cellpadding="0" cellspacing="0">
<tr><td class="text" align="left"><input
type='Checkbox'
value="1" name="chkRememberID"> Remember my User ID on this
computer.
<BR><BR>
To best serve your business needs, your
browser must be
cookie-enabled for this site to work properly.<BR><BR>
<a href="Javascript:MyPopUp('cookies.asp',
500, 350);"><B>What
does this mean?</b></a></td></tr>
</table></td></tr>
</table></td></tr>
<tr><td class="blue3-padded" width="100%"><table
border="0"
cellpadding="5" cellspacing="0" width="100%">
<tr><td width="50%" align="left"><a
href="UserForgetPassword.asp"
target='_self'><img src="/images/passwd.gif" hspace="5"
border="0"></a></td><td width="50%" align="right"><input type="hidden"
Name="NEXTURL" value="/"><input type="hidden" value="/"><input
type="image" src="/images/submit_btn.gif" value="Login" id=submit1
name=submit1></td></tr>
</table></td></tr>
</table></td><td width="25%"> </td></tr>
</table></td></tr>
<tr><td width="100%" height="100%"> </td></tr>
</table>
<!--input type="hidden" id="SiteID" name="SiteID" value="" />
<input type="hidden" id="SiteTicket" name="SiteTicket" value=""
/>
<input type="hidden" id="ReturnURL" name="ReturnURL" value="" />
<input type="hidden" id="FirstURL" name="FirstURL" value="" />
<input type="hidden" id="AuthType" name="AuthType" value="" /-->
</form>
</BODY>
</HTML>
- [Bug-wget] wget --post-data not getting past login page,
loc <=