Hello,
I want to grab the website through java. On the website I found
following html form:
<form action="http://secure.page.com/login.php" method=post>
<input type="hidden" name="loginnext" value="http://secure.page.com/
login.php/menu.php">
<input name=username size=20><input name=password type=password
size=20>
<input type=submit name=submit value=submit>
Because I am newbie to url handling in java I am wondering if it can
be simply done by using standard java api or I have to use some extra
libraries (I found in google httpclient from apache).
Regards, Mark
Oliver Wong - 19 Feb 2007 20:27 GMT
> Hello,
>
[quoted text clipped - 11 lines]
> be simply done by using standard java api or I have to use some extra
> libraries (I found in google httpclient from apache).
See http://www.innovation.ch/java/HTTPClient/getting_started.html In
particular, the part that starts "To POST form data from an applet back to
your server you could use something like this"
- Oliver
Arne Vajhøj - 19 Feb 2007 21:29 GMT
> I want to grab the website through java. On the website I found
> following html form:
[quoted text clipped - 9 lines]
> be simply done by using standard java api or I have to use some extra
> libraries (I found in google httpclient from apache).
It can be done using just Java API. Jakarta Commons HttpClient
uses Java API.
That said, then using Jakarta Commons HttpClient is 10 times
easier.
Arne