Re: Check if web address can be reached

Shantonu Sen <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Yes, an HTTP HEAD request.

Shantonu

Sent from my MacBook

On Feb 28, 2010, at 12:31 PM, Chad Armstrong wrote:

> Hello:
> 
> What is an efficient method to check if a web address is valid and can be reached?  I want to take an NSURL (www.example.com/foo.txt) and check if I can reach it.  I don't need to download the data just yet, since the data could be arbitrarily large.  Is there a way to make a call and receive a confirmation, such as a "200" message?
> 
> - Chad
> _______________________________________________
> MacOSX-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.