<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>TWPUG問答 - 如何偵測URL資源是否存在</title>
<link>http://blog.roodo.com/rocksaying/archives/3215473.html/</link>
<description><![CDATA[Tags: 偵測URL http socket
問: 如何偵測網路圖片是否存在?如http://www.example.com/xxx.png。並回傳結果。

如果僅需偵測是否存在，而不要下載整份文件。僅需要透過 HTTP 協定 (RFC2616)的 HEAD method 即可達成目的。依 HTTP 協定之狀態定義，文件存在時回應代碼 200 ，不存在時回應 404 。我們可以此作為回傳值。
]]>
	</description>
<language>zh-tw</language>
<generator>Roodo Blog System</generator>
<copyright>All Rights Reserved</copyright>
<atom:link href="http://blog.roodo.com/rocksaying/archives/3215473-comment.xml" rel="self" type="application/rss+xml" />
<item>
	<title>回應：TWPUG問答 - 如何偵測URL資源是否存在</title>
	<description><![CDATA[Good question. 如果改由 JavaScript 進行偵測動作，就可以把偵測動作分派給 client 去做。這是一種 Ajax 的應用， See <a href="http://blog.roodo.com/rocksaying/archives/3216885.html">如何偵測URL資源是否存在, Ajax way</a>。]]>
	</description>
	<link>http://blog.roodo.com/rocksaying/archives/3215473.html</link>
	<guid>http://blog.roodo.com/rocksaying/archives/3215473.html#comment-10353999</guid>
		<category>文章回應</category>
	<pubDate>Thu, 10 May 2007 17:07:32 +0800</pubDate>
</item>
<item>
	<title>回應：TWPUG問答 - 如何偵測URL資源是否存在</title>
	<description><![CDATA[JavaScript have onerror event too.]]>
	</description>
	<link>http://blog.roodo.com/rocksaying/archives/3215473.html</link>
	<guid>http://blog.roodo.com/rocksaying/archives/3215473.html#comment-10349019</guid>
	<author>luvkarl@gmail.com(Ka-Yue)</author>	<category>文章回應</category>
	<pubDate>Thu, 10 May 2007 10:49:33 +0800</pubDate>
</item>
</channel>
</rss>