Homework Assignment #17 (HTTP)

For this assignment, you'll be creating a web app that manipulates the content of another web page. When first loaded, the app should ask the user to input a URL. When the user inputs the URL and presses a button, the app should access the web page at that URL, manipulate the contents of the page, and then display the result. If the user enters in a malformed URL, or one that doesn't exist, print an error message and ask them to re-enter the address. In other words, make sure you catch any IOExceptions that might arise, either when creating the URL object or when trying to access the web page.

The nature of the manipulation is up to you. Here are some suggestions:

Remember that you'll have access to the source code of the page, but any relative links will no longer work, meaning that lots of the images will be dead, style sheets probably won't load (and you'll lose lots of formatting), and many links will be broken. I recommend testing it on pages with mostly text (like say the page you're on right now).

When you've created the web app, log on to the class OnCourse page, go to the Assignments tab, and submit your assignment there. Remember to include the URL for your web app (including the port number) with your submission!

This assignment is due Thursday, July 24th before class.