Re: IdHTTP and ftp URL

Giganews Newsgroups
Subject: Re: IdHTTP and ftp URL
Posted by:  Remy Lebeau (TeamB) (gambit…
Date: Tue, 29 Jul 2003

"Michael Fritz" <> wrote in message

> I'm using IdHTTP.Head(URL) to check if an URL is valid.

Head() is not meant to be used for validaty, it is used for retreiving
resource info without downloading the resource first.  The only validaty
that Head() can offer you is to throw an error if the URL cannot be accessed
for any reason.  That is not a true validaty check, only a workaround.
Head() could fail for a number of reasons that do not necessarily mean that
the URL is invalid in general.

> What is the equivalent for FTP URLs

There isn't any.




In response to

IdHTTP and ftp URL posted by Michael Fritz on Tue, 29 Jul 2003