<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Check URL validity ASP.net</title>
	<atom:link href="http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/</link>
	<description>My notes on computer hardware, application development &#38; the odd extra</description>
	<lastBuildDate>Wed, 09 Dec 2009 09:13:26 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dotnetguts</title>
		<link>http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-8467</link>
		<dc:creator>dotnetguts</dc:creator>
		<pubDate>Sun, 28 Dec 2008 20:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-8467</guid>
		<description>Good Information :)

Thanks,
Dotnetguts
http://dotnetguts.blogspot.com</description>
		<content:encoded><![CDATA[<p>Good Information <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks,<br />
Dotnetguts<br />
<a href="http://dotnetguts.blogspot.com" rel="nofollow">http://dotnetguts.blogspot.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-8372</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 29 Apr 2008 23:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-8372</guid>
		<description>just remove the try/catch</description>
		<content:encoded><![CDATA[<p>just remove the try/catch</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stewart</title>
		<link>http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-8370</link>
		<dc:creator>Stewart</dc:creator>
		<pubDate>Wed, 16 Apr 2008 09:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-8370</guid>
		<description>Jb you are right</description>
		<content:encoded><![CDATA[<p>Jb you are right</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jbmixed</title>
		<link>http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-3779</link>
		<dc:creator>jbmixed</dc:creator>
		<pubDate>Fri, 24 Aug 2007 07:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-3779</guid>
		<description>yes, because a readtoend can be deadly dangerous (if the file to check is a large .exe for example)</description>
		<content:encoded><![CDATA[<p>yes, because a readtoend can be deadly dangerous (if the file to check is a large .exe for example)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry Cornwell</title>
		<link>http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-376</link>
		<dc:creator>Terry Cornwell</dc:creator>
		<pubDate>Thu, 22 Feb 2007 13:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-376</guid>
		<description>I&#039;ve been playing with this for a while now and can&#039;t see a way to make it work without the Try Catch block... When I try non existent domains the GetResponse() method throws the &quot;The remote name could not be resolved: &#039;domainname.com&#039;&quot; exception.

Phil?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been playing with this for a while now and can&#8217;t see a way to make it work without the Try Catch block&#8230; When I try non existent domains the GetResponse() method throws the &#8220;The remote name could not be resolved: &#8216;domainname.com&#8217;&#8221; exception.</p>
<p>Phil?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Winstanley</title>
		<link>http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-43</link>
		<dc:creator>Phil Winstanley</dc:creator>
		<pubDate>Tue, 05 Dec 2006 21:54:34 +0000</pubDate>
		<guid isPermaLink="false">http://cgaskell.wordpress.com/2006/12/05/check-url-validity-aspnet/#comment-43</guid>
		<description>I&#039;d do it a little differently: -

1. Check the URL using a regular expression.
2. Remove the Try/Catch
3. Check the .Status property of the Response

If the Status property is 200 or 302 (Object moved), then the URL is valid, if it&#039;s any other status code it&#039;s invalid.</description>
		<content:encoded><![CDATA[<p>I&#8217;d do it a little differently: -</p>
<p>1. Check the URL using a regular expression.<br />
2. Remove the Try/Catch<br />
3. Check the .Status property of the Response</p>
<p>If the Status property is 200 or 302 (Object moved), then the URL is valid, if it&#8217;s any other status code it&#8217;s invalid.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
