473,320 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Authenticate Using WGET Tool

30
I am looking to string test a website using wget tool. I need to post data using wget. The form tab of the login page is as follows:

Expand|Select|Wrap|Line Numbers
  1. <FORM ACTION="../../servlet/AuthenticationServlet" METHOD="POST" NAME="LogonForm" onSubmit="saveCustomerNumber(document.LogonForm.customerNumber.value); return waitedFor(3)">
  2.             <INPUT Name="customHeader" type="hidden" value="">
  3.  
  4.             <!-- start inner table 1 in the 2nd column -->
  5.                     <TABLE BORDER="0" WIDTH="100%" cellspacing="0" cellpadding="2">
  6.                         <TR>
  7.                         <td width="30%"></td>
  8.                         <TD class="defaultText" width="23%" ALIGN="right" bgcolor="#F3F3F3" nowrap>Customer number:</TD>
  9.                         <TD class="defaultText" width="20%" bgcolor="#F3F3F3">
  10.                           <SCRIPT LANGUAGE="JavaScript">    
  11.                                document.write("<INPUT NAME=customerNumber TYPE=TEXT SIZE=9 MAXLENGTH=9 ");
  12.                                document.write("VALUE=" + getCustomerNumber(this.form) + ">");
  13.                           </SCRIPT>    
  14.                         </TD>
  15.                         <td>&nbsp;</td>
  16.                         </TR>
  17.                         <TR>
  18.                         <td width="30%"></td>
  19.                         <TD class="defaultText" width="23%" ALIGN="right" bgcolor="#F3F3F3">PIN:</TD>
  20.                         <TD class="defaultText" width="20%" bgcolor="#F3F3F3"><INPUT TYPE="password" SIZE="17" MAXLENGTH="15" NAME="Password"></TD>
  21.                         <td></td>
  22.                         </tr>
  23.                     </TABLE>
  24.  
  25.                 <TABLE BORDER="0" CELLPADING="3" CELLSPACING="8">
  26.                     <TR>
  27.                     <TD valign="top">  
  28.                     <br>          
  29.         <!-- define LOGON button -->
  30.                         <INPUT Name="Role" type="hidden" value="Member">
  31.                         <INPUT class="defaultText" NAME="Login" TYPE="submit" VALUE="Login">
The name of the login page is loginmember.jsp so my command looks as follows:
wget --post-data="customerNumber=XXXXX&Password=XXXX&Login=Log in" http://www.example.com/passport/loginmember.jsp.

When I execute this command; it seems to be downloading loginmember.jsp all the time and no authentication seems to take place. Authentication doesn't seem to take place. Please help; this command is been executed in a windows environment.
May 7 '10 #1
2 2711
Jibran
30
Anyone with wget experience.
May 9 '10 #2
drhowarddrfine
7,435 Expert 4TB
I've never used wget to post data but this is the wrong board anyway.
May 9 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Remulac | last post by:
I am in the process of getting ASCII data down from a server that will print out the ASCII version of a proprietary format when you click "get ASCII" on the site. I'm trying to bring it down...
3
by: Kiran A K | last post by:
hi, i tried to generate an xsd file using the "XSD" tool. i used the following command on the DOS prompt. > xsd Const1.exe "Const1.exe" is an exe file in the same directory. however no .xsd...
1
by: Learner | last post by:
Hello, We are using ActivePDF toolkit to generate reports in our web application. We are using ASP.NET 2.0 and SQL Server 2005. We are able to open the pdf files on our local development box...
0
by: Emily | last post by:
Hi every body, I'm workin on a vb.net 2003 ,and on an Access db. I've the table :"CarParts" has these columns(PartNo,PartName,Price) and I've a question I hope someone could help me to solve it....
1
by: rbragg | last post by:
In my db, I have the fields user and pass with one record. With the following code, I get a continuous dialog box display. If I put in a bogus user/pass OR the correct user or pass, the dialog box...
1
maxamis4
by: maxamis4 | last post by:
Folks, Once again I come with a new question. I have this application where a user has a login and Password prompt. Its in MS Access. The powers that be want this to authenticate to a web page...
1
by: =?Utf-8?B?U3R1?= | last post by:
Hi I have a visual studio 2005 project How do I use the Ajax control tool kit without having to creat a brand new project ? TIA Stu
1
by: Rajasekar09 | last post by:
hi guys, now i'm working in software company.. past two days back i.m started to work krypton tool kit..yesterday i was working in krypton tool kit textbox.. that time i'm not able to change back...
2
by: mangalamonkey | last post by:
I want to export data into an excel file using iReports.I could do that but the data is displayed as an image. I need the data to be displayed as cells as in the excel sheet. plz do reply.........
7
by: =?Utf-8?B?QU9UWCBTYW4gQW50b25pbw==?= | last post by:
Hi, I have been using the code (some of it has been removed for simplicity) below to allow authenticated (using ASP.NET membership database) users to get a file from their archive area. It...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.