<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Determining if a URL exists with Curl</title>
	<link>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/</link>
	<description>Web Development Blog</description>
	<pubDate>Sat, 05 Jul 2008 00:20:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: @TheKeyboard &#187; Blog Archive &#187; How To HTTP-PUT A File Somewhere Using PHP</title>
		<link>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-23599</link>
		<pubDate>Fri, 11 Jan 2008 21:42:17 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-23599</guid>
					<description>[...] The only tricky thing here really is the use of the end function to grab that last match of the status codes. I got the code for doing the preg_match from this site and it seems to work just fine. The reason to use end(...) as far as I can tell is to make sure that I only get the last match of the group. Neat little trick and the link I posted demonstrates it. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] The only tricky thing here really is the use of the end function to grab that last match of the status codes. I got the code for doing the preg_match from this site and it seems to work just fine. The reason to use end(&#8230;) as far as I can tell is to make sure that I only get the last match of the group. Neat little trick and the link I posted demonstrates it. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tobias</title>
		<link>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-15913</link>
		<pubDate>Mon, 27 Aug 2007 09:16:00 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-15913</guid>
					<description>Hi there,

I were just looking up (again :-) )  how to get HTTP-Status Code via curl.

Your method might work, but curl by itself collects and provides these information much more reliable like this
&lt;code&gt; $code = curl_getinfo($ch,CURLINFO_HTTP_CODE);&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I were just looking up (again <img src='http://www.jellyandcustard.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )  how to get HTTP-Status Code via curl.</p>
<p>Your method might work, but curl by itself collects and provides these information much more reliable like this<br />
<code> $code = curl_getinfo($ch,CURLINFO_HTTP_CODE);</code>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: FettesPS</title>
		<link>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-11690</link>
		<pubDate>Mon, 11 Jun 2007 20:54:36 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-11690</guid>
					<description>Great article!  Far better than just a preg_match.

Thanks</description>
		<content:encoded><![CDATA[<p>Great article!  Far better than just a preg_match.</p>
<p>Thanks
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Khalid</title>
		<link>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-329</link>
		<pubDate>Fri, 09 Jun 2006 09:32:02 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-329</guid>
					<description>Strange, It is definately in my code I have saved, I think wordpress is removing it.

I'll have a go at fixing it

Thanks for the heads up!

Khalid</description>
		<content:encoded><![CDATA[<p>Strange, It is definately in my code I have saved, I think wordpress is removing it.</p>
<p>I&#039;ll have a go at fixing it</p>
<p>Thanks for the heads up!</p>
<p>Khalid
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jd</title>
		<link>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-326</link>
		<pubDate>Thu, 08 Jun 2006 20:04:48 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-326</guid>
					<description>hrm...anyway, backslashes before the first &quot;1&quot;, the &quot;s&quot; and the &quot;d&quot;</description>
		<content:encoded><![CDATA[<p>hrm&#8230;anyway, backslashes before the first &#034;1&#034;, the &#034;s&#034; and the &#034;d&#034;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jd</title>
		<link>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-324</link>
		<pubDate>Thu, 08 Jun 2006 20:01:11 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2006/05/31/determining-if-a-url-exists-with-curl/#comment-324</guid>
					<description>your regex to match the header is just missing some escape slahses.  instead, try:

&quot;/HTTP\/1.[1&amp;#124;0]\s(\d{3})/&quot;

otherwise, thanks!</description>
		<content:encoded><![CDATA[<p>your regex to match the header is just missing some escape slahses.  instead, try:</p>
<p>&#034;/HTTP/1.[1|0]s(d{3})/&#034;</p>
<p>otherwise, thanks!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
