realbasic-nug
[Top] [All Lists]

Re: Determining if two urls point to the same server

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Determining if two urls point to the same server
From: Norman Palardy <palardyn at shaw dot ca>
Date: Fri, 29 Apr 2005 16:16:34 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <8d4912117e712f33f770efbdb35d86e3 at shaw dot ca> <009301c54d07$e03b4e20$6434a8c0 at advancedbionics dot com>

On Apr 29, 2005, at 4:07 PM, Roger Meier wrote:

I'm not sure I understand what you mean.

A) Do you have two addresses (e.g. http://www.apple.com and
http://support.apple.com) and you want to see if they point to the same IP? You would need to be connected to the network and resolve the addresses for
that.

Nope ... problem is I may NOT be connected but have 2 URLS.
If I fail to connect to one, and the other points to the same server, there's no point trying it either is there ?

B) Do you have to addresses (e.g. http://www.apple.com/quicktime and
http://www.apple.com/itunes) and you want to see if they point to the same
server?
In this case, RegEx search should do the job.

Or possibly
        http://www.apple.com/quicktime
and
        ftp://www.apple.com/itunes

These both are the same server (www.apple.com) but use different handlers (http vs ftp)

I'm thinking that I just need to actually parse the URL apart, ignore the handler and see if the servers are the same.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>