Discussion Board
There are no previous messagesGo to the following message
Current Forum: Homework 5 General Forum
Date: Thu Nov 8 2001 4:18 am
Author: Cipriani, Jason A. <jac4@andrew.cmu.edu>
Subject: url comparisons

is it acceptable to do a case-insensitive comparison of each of the path components of a url (and assume port 80 when the port is not specified) when comparing two url's?

for the http protocol, this method would make it conditionally compliant (as defined in rfc2119) with section 3.2.3 of rfc2616 (http 1.1 standard). no, i did not know that offhand. yes, i have rfc2616 right in front of me. and no, the fact that i have it has nothing to do with this assignment.

also, java.net.URL does not seem to decode the %XX character sequences in a url. for example, it does not change:

http://www.test.com/space%20here
to:
http://www.test.com/space here
i might be mistaken, but it certainly doesn't do it when i do:

System.out.println(new URL("http://a.com/test%20test"));
should we decode these ourselves?


jason

Post response

There are no previous messagesGo to the following message
Current Thread Detail:
url comparisons      Cipriani, Jason A.      Thu Nov 8 2001 4:18 am       
Re: url comparisons      Cipriani, Jason A.      Thu Nov 8 2001 4:21 am       
Re: url comparisons      Lee, Peter      Thu Nov 8 2001 11:09 am       
Re: url comparisons      Cipriani, Jason A.      Thu Nov 8 2001 1:50 pm       
Re: url comparisons      Liu, Limin Angela      Thu Nov 8 2001 2:23 pm       
%XX encoded characters      Cipriani, Jason A.      Thu Nov 8 2001 3:41 pm       
Re: %XX encoded characters      Lee, Peter      Thu Nov 8 2001 4:28 pm       

Back to previous screen