[REBOL] Re: comparing two URLs
From: hallvard::ystad::helpinhand::com at: 26-Oct-2003 20:20
Thanks again, everyone. Your suggestions are enlightening.
This last HEAD example shows that the eTag is identical
for the two pages loaded. If this is usual behavior for
HTTP 1.1 servers, I think the best solution will be to
1) compare urls. If the host part does not contain "www",
I will check my DB for the same host name _with_ "www"
(ex. softinnov.com --> www.softinnov.com)
2) If found, I will compare eTags.
The reason I prefer not to use 'checksum is that mirrored
pages on different servers should appear, in my view, on
the result list, whereas the mere "www" difference should
make one of two results _not_ appear within the search
I didn't even bother checking if the eTag was identical.
Thanks for showing me.
Dixit Tom Conlin <[tomc--darkwing--uoregon--edu]> (Fri, 24 Oct
2003 12:20:34 -0700 (PDT)):