Filling form using java
When I want to fill out a web form, I must fill out all the elements in that form, eg, text box,select menu, check box... with suitable information, and then, press "Submit" button. But now, I want to do this automatically, and I wonder if there is any way that can do it through java. Can any one help me please? A piece of code will be appreciated.
Thank you very much.
Are you saying that you want to use java to automatically sumbit a form on a certain website for you?
I'm not sure if you could do that but I do know that some web browsers can remember your information and automate this process for you.
Although if you want to use java to learn from this Im not sure what to do.
I don't mean using Browser, because I'm studying deep web search engine. In abbreviation, if you want to get deep content (the content hidden behind the form and cannot be searched by traditional search engine) , the only way to do that is fill out the form with valid information and then submit it. Because of the large number of forms, the process must be done automatically. That is the purpose of the question.
Anyway, thank you for giving me your advice :)
Sounds like a spam bot :)
Obviously there have been numerous safe guards against this, e.g Captcha. I doubt you could generalize it to work for every website.
Perhaps, but it's my Memory-end study, I just want to obtain hidden contents behind forms, not spam bot.
For more details, you can read these article:
Accessing the deepweb: a survey