473,587 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Authenticate Using WGET Tool

30 New Member
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="customerN umber=XXXXX&Pas sword=XXXX&Logi n=Login" 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 2719
Jibran
30 New Member
Anyone with wget experience.
May 9 '10 #2
drhowarddrfine
7,435 Recognized Expert Expert
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
3597
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 programattically so that I get an ASCII file without displaying it in a window. So far, I've used wget from a DOS batch file, but I'm having problems...
3
1445
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 file was generated. also no error was reported. what could be the problem?
1
4354
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 with out any problem. But having problems on the production server. When we moved our application to the production serrver we made sure that we...
0
933
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. I've a ,and I binded it to (PartName)column . when I check an item I want it's name to be added to a textbox to save in a specivic column,and it's...
1
3900
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 pops up again. <?php //assume user is not authenticated $auth = false; $user = $_SERVER;
1
1632
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 that was created. If the user credentials do not match then deny access to application. How can I pass through my credentials to a web page and verfiy...
1
1395
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
3366
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 color when disable state or active state... today morning i find out code for use that.. if any one need pls use this code...but still i'm not able...
2
3992
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
2815
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 seems to work fine, however I noticed that no web log entry is added when a successful download occurs (normally a 200 HTTP status code, however, if...
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.