T
think300
Hi Everyone,
I know this has been asked before but most of the threads are old so I
am hopping that there is new solutions, because I have tried Apache
Common's HttpClient and HTTPUNIT on SourceForge which seem to work for
easy web pages, but any thing with JavaScript which gets fired off
before a Form submit is processed tends to give them both trouble. I
would love to just have a Java API which would allow my to print on
"http://mytestsite.com", fill in "id" and "password" and click on
login, let the Java API just follow through all of the redirect and
additional JavaScript gyrations which this site go through and just
eventually end up on the correct page like I was doing it my self with
a web browser. At that point I could grab the web page source from the
Java API and then pull out the data that I was looking for. Again
Apache's HttpClient and HTTPUNIT seems to work on simple forms but not
with any web pages with complex redirects and javascript processing
before the final page is hit. At this point unless someone else has a
better idea I just want to have a Java program bring up FireFox,
simulate my key strokes, and then eventually let me pull the page data
back for processing. At this point I am at a loss. I just figure
there has got to be someone out there doing something similar or they
have heard of a project that is doing this?
Any help would be greatly appreciated,
Thanks,
Roger B.
I know this has been asked before but most of the threads are old so I
am hopping that there is new solutions, because I have tried Apache
Common's HttpClient and HTTPUNIT on SourceForge which seem to work for
easy web pages, but any thing with JavaScript which gets fired off
before a Form submit is processed tends to give them both trouble. I
would love to just have a Java API which would allow my to print on
"http://mytestsite.com", fill in "id" and "password" and click on
login, let the Java API just follow through all of the redirect and
additional JavaScript gyrations which this site go through and just
eventually end up on the correct page like I was doing it my self with
a web browser. At that point I could grab the web page source from the
Java API and then pull out the data that I was looking for. Again
Apache's HttpClient and HTTPUNIT seems to work on simple forms but not
with any web pages with complex redirects and javascript processing
before the final page is hit. At this point unless someone else has a
better idea I just want to have a Java program bring up FireFox,
simulate my key strokes, and then eventually let me pull the page data
back for processing. At this point I am at a loss. I just figure
there has got to be someone out there doing something similar or they
have heard of a project that is doing this?
Any help would be greatly appreciated,
Thanks,
Roger B.