hi, I've trying to grab a asp page but it seems java can't handle any page
that is not static (or redirected?)?
I evened tryied using HttpURLConnection class and set setFollowRedirects()
to true, but still I didn't get the html page (that shows up when you open
the site from IE) instead I get a very short page, what's going on?
thanks
------------------- my methods to pull this asp page -----------
URL u = new URL("http://www.yourname.com");
HttpURLConnection url;
url = (HttpURLConnection)u.openConnection() ;
url.setFollowRedirects(true);
BufferedReader html = new BufferedReader(new InputStreamReader(
url.getInputStream()));
from the page I get back there is following javascript
location.replace("default.asp");
anyone know what's going wrong? thanks
tony