Discussion Board
Go to the previous messageThere are no next messages
Current Forum: Homework 5 General Forum
Date: Tue Nov 13 2001 11:52 pm
Author: Bortz, Andrew S. <abortz@andrew.cmu.edu>
Subject: Re: What about the slash at the end?

Actually, technically http://www.cmu.edu/hub is a _different_ url from http://www.cmu.edu/hub/

You don't see it because the HTTP request for the first is responded to by a redirect, which a browser then follows to the second url. java.net.URLConnection does follow redirects, but is fairly stupid about it, and doesn't allow you to get the final url, only the url that you gave it. You can write a wrapper around URLConnection, though, that will allow you to determine the _true_ url of the site that you are browsing.
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
What about the slash at the end?      Miyashiro, Robert T.      Mon Nov 12 2001 8:42 pm       
Re: What about the slash at the end?      Lee, Peter      Tue Nov 13 2001 9:26 pm       
Re: What about the slash at the ...      Bortz, Andrew S.      Tue Nov 13 2001 11:52 pm       

Back to previous screen