Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Http login

Thread view: 
mark - 19 Feb 2007 20:18 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.