Help:A website problem
My problem is to visit the website
and then there is a dropdown menu called Auslandpreise and if u click the button Hinzufügen that selected country will be added to the same webpage and after that i can extract the contents from that page.
Now the question is how to select all the elements from that menu and add it to the page from my Java program.
Use URLConnection. Connect to the server and download that web page. Parse out the <FORM> you are interested, and parse out <option> values for that <select>. Then recreate the form data and post it back to the server in a URLConnection, once for each option you parsed out earlier.
You'll have to look up the <post> data format (it's pretty straightforward).
If you want, you can just cut-and-paste their list of <options>, if you don't want to do the first URLConnection and parsing of the file programatically.
By Michael in forum ASP.NET
Last Post: 02-24-2006, 09:54 AM
By aesoprock00 in forum Java
Last Post: 01-28-2006, 07:18 PM
Last Post: 12-28-2005, 03:09 PM
By JohnsonGPS in forum C++
Last Post: 11-16-2005, 07:15 PM
By Wade Balzer in forum VB Classic
Last Post: 06-23-2000, 03:17 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL