By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 1,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

Simulate Web Form Input.

P: n/a
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
Share this Question
Share on Google+
10 Replies


P: n/a
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.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2

P: n/a
"JustSomeGuy" <no**@nottelling.com> wrote in message
news:zoGud.484253$%k.323851@pd7tw2no...
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.org> 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

P: n/a
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

P: n/a
I'm not sure I know what to make of this response...
Jul 23 '05 #5

P: n/a
On Sun, 12 Dec 2004 17:58:57 GMT, JustSomeGuy <no**@nottelling.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

P: n/a

"Neal" <ne*****@yahoo.com> wrote in message
news:op**************@news.individual.net...
On Sun, 12 Dec 2004 17:58:57 GMT, JustSomeGuy <no**@nottelling.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

P: n/a
"JustSomeGuy" <no**@nottelling.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**@example.com/getdata.php?sym=$sym;stat=$stat"; done; done
Jul 23 '05 #8

P: n/a
comp.lang.javascript FAQ - http://jibbering.com/faq
"JustSomeGuy" <no**@nottelling.com> wrote in message
news:Z00vd.473380$Pl.75019@pd7tw1no...

"Neal" <ne*****@yahoo.com> wrote in message
news:op**************@news.individual.net...
On Sun, 12 Dec 2004 17:58:57 GMT, JustSomeGuy <no**@nottelling.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 "userPassword" 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*****@agricoreunited.com>
Jul 23 '05 #9

P: n/a
In article <zoGud.484253$%k.323851@pd7tw2no>, 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

P: n/a

"Mr.Clean" <mrclean@p&g.com> wrote in message
news:1103143233.8faa1e2c2db71cd6f1c7d5b41952a2ee@t eranews...
In article <zoGud.484253$%k.323851@pd7tw2no>, 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...?


This is a c++ program for which html classes exist.
Jul 23 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.