473,761 Members | 1,808 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simulate Web Form Input.

I need to log into a web page automatically.

The web page has a password text field and a login button.
(A form?)

How do I simulate that a user logged in and entered the password
and pressed the login button?

TIA.
Jul 23 '05 #1
10 2755
JustSomeGuy wrote:
I need to log into a web page automatically.
Then do it.
The web page has a password text field and a login button.
(A form?)
Thats what most use. A form that you submit.
How do I simulate that a user logged in and entered the password
and pressed the login button?


Hmmmm. Maybe by filling in the username password and clicking the login
button?

Maybe a little more explanation of what you are trying to do. Of the
three groups you posted to, only 2 can help you. You can't do what you
are describing with plain HTML.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
"JustSomeGu y" <no**@nottellin g.com> wrote in message
news:zoGud.4842 53$%k.323851@pd 7tw2no...
I need to log into a web page automatically. The web page has a password text field and a login button.
(A form?)

How do I simulate that a user logged in and entered the password
and pressed the login button?

"Tim Tyler" <ti*@tt1lock.or g> wrote in message news:I8******** @bath.ac.uk... I'm after some software that tracks down past postings on usenet, and
uses some heuristics to compose new messages along similar lines.

The same sort of thing that people use to make computer-generated
bach compositions - IOW.
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.


An insane child is posing as multiple users on usenet, "posting" clipped pages
from some paranoid delusion on the Kennedies, etc. The purpose of the identity
theft is to
offend the real person into replying to a cross-posted message, to flood
news.admin.net-abuse.email with irate users.

The person desiring to cause misery to usenet users is now asking for assistance
in programming the job. Consider this before helping: Do you actually want to
flood the newsgroups you read with spam?

-:|:-
AngleWyrm
Jul 23 '05 #3
JustSomeGuy wrote:
I need to log into a web page automatically.
Some browsers will let you store username/passwords for you. Is that
what you want?
The web page has a password text field and a login button. (A form?)
So it seems. Url?
How do I simulate that a user logged in and entered the password and
pressed the login button?


Simulate how? I'm not clear on what you want. Perhaps you can cofigure
your server to allow certain ip addresses access with a satisfy any command.

Your post is off-topic for ciwah, so I've trimmed this response's x-posting.

--
Brian (remove "invalid" to email me)
Jul 23 '05 #4
I'm not sure I know what to make of this response...
Jul 23 '05 #5
On Sun, 12 Dec 2004 17:58:57 GMT, JustSomeGuy <no**@nottellin g.com> wrote:
I'm not sure I know what to make of this response...


I think the poster is expressing dismay that you would be attempting to
make a spider, or something like it, which would automatically fill in
forms and log into sites, and is speculating on the nature of your
motivations for doing such a thing.

I was going to reply to your original post, but I didn't know enough about
what you were trying to accomplish really, and wasn't sure what to ask to
fill out the information. But certainly a bit more detail on what you're
trying to do would help others give more relevant, perhaps even helpful,
responses.
Jul 23 '05 #6

"Neal" <ne*****@yahoo. com> wrote in message
news:op******** ******@news.ind ividual.net...
On Sun, 12 Dec 2004 17:58:57 GMT, JustSomeGuy <no**@nottellin g.com> wrote:
I'm not sure I know what to make of this response...


I think the poster is expressing dismay that you would be attempting to
make a spider, or something like it, which would automatically fill in
forms and log into sites, and is speculating on the nature of your
motivations for doing such a thing.

I was going to reply to your original post, but I didn't know enough about
what you were trying to accomplish really, and wasn't sure what to ask to
fill out the information. But certainly a bit more detail on what you're
trying to do would help others give more relevant, perhaps even helpful,
responses.


Yes I guess that might be a 'security' issue. Basically I'm logging into a
device that has a web interaface and I'm automating the interface. The
first step is to log into the device. Hence the first form is a login.
I have the html to this device and hence know the 'variables' that need to
be set. I'm simply not sure of the HTML POST/GET procedure at this point.
Jul 23 '05 #7
"JustSomeGu y" <no**@nottellin g.com> wrote:
I need to log into a web page automatically.
The web page has a password text field and a login button.
(A form?)


wget is great for this sort of thing.

Bill, for sym in $(cat symbs.txt); do for stat in $(cat stats.txt); do wget
"http://user:pa**@examp le.com/getdata.php?sym =$sym;stat=$sta t"; done; done
Jul 23 '05 #8
comp.lang.javas cript FAQ - http://jibbering.com/faq
"JustSomeGu y" <no**@nottellin g.com> wrote in message
news:Z00vd.4733 80$Pl.75019@pd7 tw1no...

"Neal" <ne*****@yahoo. com> wrote in message
news:op******** ******@news.ind ividual.net...
On Sun, 12 Dec 2004 17:58:57 GMT, JustSomeGuy <no**@nottellin g.com> wrote:
I'm not sure I know what to make of this response...
I think the poster is expressing dismay that you would be attempting to make a spider, or something like it, which would automatically fill in forms and log into sites, and is speculating on the nature of your
motivations for doing such a thing.

I was going to reply to your original post, but I didn't know enough about what you were trying to accomplish really, and wasn't sure what to ask to fill out the information. But certainly a bit more detail on what you're trying to do would help others give more relevant, perhaps even helpful, responses.


Yes I guess that might be a 'security' issue. Basically I'm logging

into a device that has a web interaface and I'm automating the interface. The first step is to log into the device. Hence the first form is a login. I have the html to this device and hence know the 'variables' that need to be set. I'm simply not sure of the HTML POST/GET procedure at this

point.

http://host/path/to/page.cgi?userNam...sword=password

The above will work assuming that the device accepts a GET. The text of
"userName" and "userPasswo rd" would be the names of the inputs on the
login form. You may also need to include some additional hidden
parameters and values from the original form.

Note that if your device puts a unique session id into a hidden input on
the login form or something similar, then the above simply will not
work.

--
Grant Wagner <gw*****@agrico reunited.com>
Jul 23 '05 #9
In article <zoGud.484253$% k.323851@pd7tw2 no>, no**@nottelling .com
says...
I need to log into a web page automatically.

The web page has a password text field and a login button.
(A form?)

How do I simulate that a user logged in and entered the password
and pressed the login button?


More info is definately needed here.
What development language are you talking about?
Is this to be a standalone program or...?
Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
11261
by: Christian | last post by:
Hello, As the subject says it, is there a way to simulate a special keypress in JS ? In my case, on loading an HTML page, i'd like to set the cursor at the end of the input text of an <input type=text ...> object. focus() sets the cusor at the beginning Any idea ? Christian.
3
8091
by: q2005 | last post by:
Hi, all Is that possible I can do window.open("http://xserver1/app/typ/test/tesServer.php?aaa=111&bbb=222&ccc= 333","","") to simulate a POST ACTION with a form rather than a GET ACTION? Jack
8
4351
by: JustSomeGuy | last post by:
I need to log into a web page automatically. The web page has a password text field and a login button. (A form?) How do I simulate that a user logged in and entered the password and pressed the login button? TIA.
2
2688
by: dast | last post by:
I want to simulate an input and post into a web page and than download the web page that is opened after the correct input! The web page exists of an user input form with userid and password, after input the correct data and pressing the submit button another web page will be opened. I have tried to download the web page with the following code (I am using the CAmHttpSocket class at http://www.codeproject.com/internet/amhttputils.asp):
0
4485
by: Yandos | last post by:
Hello all, I'm sorry for a bit off-topic post, but curl does not have own newsgroup, so I hope someone might help me here... I need to feed form like the following using libcurl: <form action="file-upload.php" method="post" enctype="multipart/form-data"> <input name="senderid" value="1111" type="hidden"> <input name="senderpass" value="blah" type="hidden">
2
29495
by: Eli | last post by:
HI! I made some quiz using one HTML form (few question with few radio-button each like potential answers) that have one Submit button. I would like to simulate click on this button (e.g. named "Finish") after some time, 10 minute or so, which be equal like click on submit button and terminate quiz (open another page or so). I tried to solve it by JavaScript but won't, always error, like can't detect button like object. What to do? Listing...
3
29908
by: John Dalberg | last post by:
I have an app that keeps popping up a windows with a 'Yes' or 'OK' button on it. I am trying to write a little app that automates hitting the enter key so I don't have to do it myself. I used the FindWindow method to get a handle of the window and then issued: SendMessage(hwnd, 273, 0, IntPtr.Zero) to send an ENTER key to it but it didn't work. If I need to get the handle of the 'OK' button, how do I do it? (How do you
6
12282
by: BarryX | last post by:
Hi, How do I simulate this from the server side: <form name="SearchForm" method="POST" id="SearchForm" action="http://SOMEURL/Search.ASP?Parm1=1&Parm2=2"> I have generally been posting data using: Set xml = Server.CreateObject("Microsoft.XMLHTTP")
1
4514
by: amphibian1 | last post by:
Hello, I am writing a C# command line application that uploads files to a website. Basically, imagine this form in a web application: <form method="post" enctype="mulipart/form-data" action="http://www.myfilestorage.com/"> <input type="text" name="documentId" value="123" /> <input type="file" name="document" value="C:\myfile.doc" /> </form> I need the same thing to happen in my command line application as what would happen in the...
0
9554
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9377
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9989
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9811
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.