Apologies in advance if this is the 2nd message you recieve on this
topic - the first was accidentally sent prior to completion. That being
the first, I got a notice from the forum to confirm my email address.
I've delayed responding to it, but realize as soon as I respond to a
second notice for this email, it will forward both. This is the
complete request, then; ignore previous.
--------------------
I wish to use wget to log on to Oracle Portal v. 3.0.9.8.4 (obsolete)
using apache 1.3.19 and Oracle single sign on .
we are on Wget 1.9.1. using hp-ux 11.11
When I run wget using either --http-user/--http-password form or
--post-data='login=user&password=pwd', I get the same thing:
it downloads most of the page. When it gets to the username/password
fields, apache returns an authentication code, so we know the
user/password is working. Wget tries to use this authentication code as
a file name. Apache throws an error that says the filename is too long.
Someone here said I should ask you about page tags and how to tell wget
to use those. I'm new to all this, so I might need a few hints, but
I've figured out what a page tag is. Here is the pertinent source code
for the login page:
<SCRIPT LANGUAGE="JavaScript1.1">
<!-- Comment out script for old browsers
function loginsubmit()
{
document.LoginForm.uname.value =
document.LoginForm.ssousername.value;
document.LoginForm.pwd.value =
document.LoginForm.password.value;
document.LoginForm.ssousername.value = "";
document.LoginForm.password.value = "";
document.LoginForm.submit();
}
//-->
</SCRIPT>
<FORM ACTION="[our url]/pls/portal30/PORTAL30.wwptl_login.login_url
<http://uxspaap1.buffetsinc.com:7777/pls/portal30/PORTAL30.wwptl_login.l
ogin_url> " METHOD="POST" name="LoginForm"
AutoComplete="Off" onSubmit="loginsubmit()">
<INPUT TYPE="hidden" NAME="p_requested_url" VALUE="[our
url]/pls/portal30/PORTAL30.home
<http://uxspaap1.buffetsinc.com:7777/pls/portal30/PORTAL30.home> ">
<INPUT TYPE="hidden" NAME="p_cancel_url" VALUE="[our
url]/pls/portal30/PORTAL30.home
<http://uxspaap1.buffetsinc.com:7777/pls/portal30/PORTAL30.home> ">
<INPUT TYPE="hidden" NAME="uname" VALUE="">
<INPUT TYPE="hidden" NAME="pwd" VALUE="">
<TABLE WIDTH="90%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD>
<FONT CLASS="OraHeaderSub"><NOBR></NOBR></FONT>
<BR>
<FONT CLASS="OraInstructionText"><FONT class="PortletText1">Enter your
user name and password to login.</FONT></FONT>
<BR>
<BR>
<TABLE ALIGN="center">
<TR>
<TD><FONT class="PortletHeading1">User Name</FONT></TD>
<TD><INPUT TYPE="text" NAME="ssousername" SIZE="20" MAXLENGTH="80"></TD>
</TR>
<TD><FONT class="PortletHeading1">Password</FONT></TD>
<TD><INPUT TYPE="password" NAME="password" SIZE="20"
MAXLENGTH="255"></TD>
</TR>
Can you help me figure out how to use wget to "log in to this page"?
Once logged in, I am intending to do a recursive download, or mirror.
Please cc me as not on the mailing list.
Thanks for your time,
Kevin