Java AutoBot

I'm using Java 1.2.

I need an example of a Java applet (or even application) that can fill out and submit (post) a form to a web server.

For example, in 1998 "Hank the dwarf" from the Howard Stern Show was voted the most beautiful person in the world on the People magazine Internet pole by a margin of 10-1 over Leonardo DiCaprio simply because somebody wrote a VoteBot in Java to skew the outcome.

I'm not asking to overload any Internet surveys (although I'm sure it happens all the time), but I'd like an example program that demonstrates how to fill out a form, submit it, fill out the next form, submit it, etc.

Thank you in advance,

-- CPopin
LVL 2
cpopinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jan LouwerensSoftware EngineerCommented:
just look at the source for the form. Usually, when the form is submitted, it just follows the target URL with certain parameters.

<form method=post action="http://www.xxx.com/bin/Results">
   <input type=text name=words>
   <input type=text name=moreWords>
   ...
</form>

would result in a URL like:
http://www.xxx.com/bin/Results?words=inputTextHere&moreWords=moreText&...

Just create an applet the follows this URL every once in a while, resulting in the data being submitted.
0
heyhey_Commented:
previous example uses HTTP GET request... for HTTP POST request checj Java tips at www.javasoft.com
0
cpopinAuthor Commented:
jlouwere,
But how do you fill in and submit to a form from an applet or application?

HeyHey,
[with attitude] Thanks a lot.  I didn't realize there was a site just for Java that was hosted by Sun.  (Wouldn't one HAVE to visit this site just to download the JDK?)  Now if you could be a little more specific with your URL, maybe something more than just a domain, you could actually earn 100 points.
0
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

heyhey_Commented:
really sorry :(( typo :(
I meant www.javaworld.com. search for Java tips
0
cpopinAuthor Commented:
HeyHey,
Oh man, this looks like it's exactly what I'm looking for.  Thanks very much.  Let me try it and get back to grade you.
0
heyhey_Commented:
answer ?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cpopinAuthor Commented:
HeyHey,
Yes, I think that is the answer.  It's a side project, and between the holidays and work, I haven't had the time to spend on it.  I'll accept after I've completed my work.

Thanks.
0
heyhey_Commented:
ok :)

nice poetry btw, do you know some more verses ? :)
0
cpopinAuthor Commented:
Thanks.  I'll add more poems when I find the time.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.