<?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/"
		>
<channel>
	<title>Comments on: Drop in replacement for Snoopy</title>
	<atom:link href="http://www.jasny.net/articles/drop-in-replacement-for-snoopy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/</link>
	<description>Helping you out with PHP &#38; MySQL</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:57:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Holiday Homes to Rent in Cornwall</title>
		<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/comment-page-1/#comment-338108</link>
		<dc:creator>Holiday Homes to Rent in Cornwall</dc:creator>
		<pubDate>Mon, 21 Nov 2011 10:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=18#comment-338108</guid>
		<description>Incredibly interesting details you&#039;ve got remarked, many thanks for placing up.</description>
		<content:encoded><![CDATA[<p>Incredibly interesting details you&#8217;ve got remarked, many thanks for placing up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/comment-page-1/#comment-212983</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 06 Jan 2010 19:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=18#comment-212983</guid>
		<description>I followed the recommendation from Chris and I also only can recommend the Zend_Http compenent. It&#039;s by far superior to Snoopy.</description>
		<content:encoded><![CDATA[<p>I followed the recommendation from Chris and I also only can recommend the Zend_Http compenent. It&#8217;s by far superior to Snoopy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry</title>
		<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/comment-page-1/#comment-211377</link>
		<dc:creator>Barry</dc:creator>
		<pubDate>Sat, 05 Dec 2009 09:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=18#comment-211377</guid>
		<description>fixes for submit:


//Tell curl to use the specified request method and version
		if (!empty($this-&gt;httpmethod)) curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $this-&gt;httpmethod);
		if ($this-&gt;httpmethod == &quot;POST&quot;) curl_setopt($ch, CURLOPT_POSTFIELDS, $this-&gt;formvars);

function submit($uri, $formvars=null, $formfiles=null)
	{
		settype($formvars, &quot;array&quot;);
		settype($formfiles, &quot;array&quot;);
		$postdata = &#039;&#039;;
		while(list($key,$val) = each($formvars)) {
					if (is_array($val) &#124;&#124; is_object($val)) {
						while (list($cur_key, $cur_val) = each($val)) {
							$postdata .= urlencode($key).&quot;[]=&quot;.urlencode($cur_val).&quot;&amp;&quot;;
						}
					} else
						$postdata .= urlencode($key).&quot;=&quot;.urlencode($val).&quot;&amp;&quot;;
				}
	
		$this-&gt;formvars = $postdata;
		//$this-&gt;formfiles = $formfiles;
		$this-&gt;httpmethod = &quot;POST&quot;;
		
		return $this-&gt;fetch($uri);
	}</description>
		<content:encoded><![CDATA[<p>fixes for submit:</p>
<p>//Tell curl to use the specified request method and version<br />
		if (!empty($this-&gt;httpmethod)) curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $this-&gt;httpmethod);<br />
		if ($this-&gt;httpmethod == &#8220;POST&#8221;) curl_setopt($ch, CURLOPT_POSTFIELDS, $this-&gt;formvars);</p>
<p>function submit($uri, $formvars=null, $formfiles=null)<br />
	{<br />
		settype($formvars, &#8220;array&#8221;);<br />
		settype($formfiles, &#8220;array&#8221;);<br />
		$postdata = &#8221;;<br />
		while(list($key,$val) = each($formvars)) {<br />
					if (is_array($val) || is_object($val)) {<br />
						while (list($cur_key, $cur_val) = each($val)) {<br />
							$postdata .= urlencode($key).&#8221;[]=&#8221;.urlencode($cur_val).&#8221;&amp;&#8221;;<br />
						}<br />
					} else<br />
						$postdata .= urlencode($key).&#8221;=&#8221;.urlencode($val).&#8221;&amp;&#8221;;<br />
				}</p>
<p>		$this-&gt;formvars = $postdata;<br />
		//$this-&gt;formfiles = $formfiles;<br />
		$this-&gt;httpmethod = &#8220;POST&#8221;;</p>
<p>		return $this-&gt;fetch($uri);<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marlin</title>
		<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/comment-page-1/#comment-131436</link>
		<dc:creator>Marlin</dc:creator>
		<pubDate>Thu, 19 Mar 2009 09:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=18#comment-131436</guid>
		<description>Yeah, I understand that you&#039;re creating a drop-in replacement for snoopy, I guess I wasn&#039;t explicit enough - I meant snoopy itself.</description>
		<content:encoded><![CDATA[<p>Yeah, I understand that you&#8217;re creating a drop-in replacement for snoopy, I guess I wasn&#8217;t explicit enough &#8211; I meant snoopy itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Daniels</title>
		<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/comment-page-1/#comment-130872</link>
		<dc:creator>Arnold Daniels</dc:creator>
		<pubDate>Wed, 18 Mar 2009 10:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=18#comment-130872</guid>
		<description>Marlin,

The HTTP extension is not a &#039;drop in replacement&#039; for snoopy. You would need to do some rewriting for a project. This lib is here to replace snoopy in projects that already uses snoopy. For new projects, I do not suggest to use this lib (as stated in the last line of the article).</description>
		<content:encoded><![CDATA[<p>Marlin,</p>
<p>The HTTP extension is not a &#8216;drop in replacement&#8217; for snoopy. You would need to do some rewriting for a project. This lib is here to replace snoopy in projects that already uses snoopy. For new projects, I do not suggest to use this lib (as stated in the last line of the article).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marlin</title>
		<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/comment-page-1/#comment-130867</link>
		<dc:creator>Marlin</dc:creator>
		<pubDate>Wed, 18 Mar 2009 10:16:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=18#comment-130867</guid>
		<description>The HTTP extension provided by PHP does everything snoopy does and much much more. It uses Curl if compiled in with it. It&#039;s tested extensively, why re-invent the wheel?</description>
		<content:encoded><![CDATA[<p>The HTTP extension provided by PHP does everything snoopy does and much much more. It uses Curl if compiled in with it. It&#8217;s tested extensively, why re-invent the wheel?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariano</title>
		<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/comment-page-1/#comment-99743</link>
		<dc:creator>Mariano</dc:creator>
		<pubDate>Tue, 20 Jan 2009 19:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=18#comment-99743</guid>
		<description>Thanks ! I\\\&#039;ve spent a couple of hours trying to figure out why magpierss was failing on some feeds while doing ok with others and then finally spotted the problem (the failing feeds were sent as http chunked data). Luckily found this site, replaced snoopy with your code and now it works like a charm :)</description>
		<content:encoded><![CDATA[<p>Thanks ! I\\\&#8217;ve spent a couple of hours trying to figure out why magpierss was failing on some feeds while doing ok with others and then finally spotted the problem (the failing feeds were sent as http chunked data). Luckily found this site, replaced snoopy with your code and now it works like a charm <img src='http://www.jasny.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/comment-page-1/#comment-29645</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 07 Jun 2008 18:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=18#comment-29645</guid>
		<description>I saw your comment regarding Snoopy on the infotech blog, and I couldn&#039;t agree more.  I started using snoopy as the base for a web spider, and it just didn&#039;t cut it.  I actually wound up switching over to the Zend HTTP packages.  
http://framework.zend.com/manual/en/zend.http.html</description>
		<content:encoded><![CDATA[<p>I saw your comment regarding Snoopy on the infotech blog, and I couldn&#8217;t agree more.  I started using snoopy as the base for a web spider, and it just didn&#8217;t cut it.  I actually wound up switching over to the Zend HTTP packages.<br />
<a href="http://framework.zend.com/manual/en/zend.http.html" rel="nofollow">http://framework.zend.com/manual/en/zend.http.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal</title>
		<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/comment-page-1/#comment-2282</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Sat, 04 Aug 2007 07:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=18#comment-2282</guid>
		<description>Works beautifully.  Thank you, Arnold!  (Once I installed the curl module for php, that is).</description>
		<content:encoded><![CDATA[<p>Works beautifully.  Thank you, Arnold!  (Once I installed the curl module for php, that is).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rom Pereira</title>
		<link>http://www.jasny.net/articles/drop-in-replacement-for-snoopy/comment-page-1/#comment-1896</link>
		<dc:creator>Rom Pereira</dc:creator>
		<pubDate>Tue, 10 Jul 2007 00:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.adaniels.nl/?p=18#comment-1896</guid>
		<description>Cool man, thank you! RomRP</description>
		<content:encoded><![CDATA[<p>Cool man, thank you! RomRP</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
