<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: HTTP Client Library for PHP</title>
	<atom:link href="http://willnorris.com/2009/03/http-client-library-for-php/feed" rel="self" type="application/rss+xml" />
	<link>http://willnorris.com/2009/03/http-client-library-for-php</link>
	<description>there&#039;s more to life than this</description>
	<lastBuildDate>Sun, 31 Jul 2011 08:06:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
	<item>
		<title>By: Stéphane Corlosquet</title>
		<link>http://willnorris.com/2009/03/http-client-library-for-php#comment-46071</link>
		<dc:creator>Stéphane Corlosquet</dc:creator>
		<pubDate>Fri, 13 Aug 2010 15:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://willnorris.com/?p=546#comment-46071</guid>
		<description>&lt;p&gt;You might also want to look at Drupal&#039;s HTTP client at http://api.drupal.org/api/function/drupal_http_request/7 - it&#039;s pretty self contained. It references other Drupal specific functions but you could easily remove then. License is GPLv2.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You might also want to look at Drupal&#8217;s HTTP client at <a href="http://api.drupal.org/api/function/drupal_http_request/7" rel="nofollow">http://api.drupal.org/api/function/drupal_http_request/7</a> - it&#8217;s pretty self contained. It references other Drupal specific functions but you could easily remove then. License is GPLv2.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nika Jones</title>
		<link>http://willnorris.com/2009/03/http-client-library-for-php#comment-31462</link>
		<dc:creator>Nika Jones</dc:creator>
		<pubDate>Thu, 28 May 2009 19:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://willnorris.com/?p=546#comment-31462</guid>
		<description>&lt;p&gt;For what it&#039;s worth you can have custom headers with the file resources option. You can look at file&#095;get&#095;contents and the custom context options (Yeah, PUTs and DELETEs are possible). One annoying thing I found though, is that when you receive a 400 range response, the return is just false, and you can&#039;t retrieve any of the information from the response or headers.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>For what it&#8217;s worth you can have custom headers with the file resources option. You can look at file&#95;get&#95;contents and the custom context options (Yeah, PUTs and DELETEs are possible). One annoying thing I found though, is that when you receive a 400 range response, the return is just false, and you can&#8217;t retrieve any of the information from the response or headers.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Chad La Joie</title>
		<link>http://willnorris.com/2009/03/http-client-library-for-php#comment-30844</link>
		<dc:creator>Chad La Joie</dc:creator>
		<pubDate>Thu, 23 Apr 2009 19:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://willnorris.com/?p=546#comment-30844</guid>
		<description>&lt;p&gt;Will, just a small aside, I would try to make sure you had cookie support.  It&#039;s been my experience that in almost all the cases where you don&#039;t think you need it you run in to some edge case where you actually do need it.&lt;/p&gt;

&lt;p&gt;Also, could you ask the WP people if they could more cleanly separate their HTTP library from their main code?  Sounds like it could be generally useful.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Will, just a small aside, I would try to make sure you had cookie support.  It&#8217;s been my experience that in almost all the cases where you don&#8217;t think you need it you run in to some edge case where you actually do need it.</p>

<p>Also, could you ask the WP people if they could more cleanly separate their HTTP library from their main code?  Sounds like it could be generally useful.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Will Norris</title>
		<link>http://willnorris.com/2009/03/http-client-library-for-php#comment-30109</link>
		<dc:creator>Will Norris</dc:creator>
		<pubDate>Wed, 25 Mar 2009 16:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://willnorris.com/?p=546#comment-30109</guid>
		<description>&lt;p&gt;hmm... not sure what to tell you.  I&#039;ve had success in the past with several of them.  Perhaps make sure that you&#039;re using a certificate from a trusted authority? (or disable verification)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>hmm&#8230; not sure what to tell you.  I&#8217;ve had success in the past with several of them.  Perhaps make sure that you&#8217;re using a certificate from a trusted authority? (or disable verification)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Henry M</title>
		<link>http://willnorris.com/2009/03/http-client-library-for-php#comment-30106</link>
		<dc:creator>Henry M</dc:creator>
		<pubDate>Wed, 25 Mar 2009 14:04:58 +0000</pubDate>
		<guid isPermaLink="false">http://willnorris.com/?p=546#comment-30106</guid>
		<description>&lt;p&gt;I tried several of the libraries mentioned and they all seem having problems w/ https&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I tried several of the libraries mentioned and they all seem having problems w/ https</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Will Norris</title>
		<link>http://willnorris.com/2009/03/http-client-library-for-php#comment-29923</link>
		<dc:creator>Will Norris</dc:creator>
		<pubDate>Fri, 20 Mar 2009 16:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://willnorris.com/?p=546#comment-29923</guid>
		<description>&lt;p&gt;@Jacob: yes, I have certainly been thinking about the license issue.  The other libraries I mentioned in my last post are either MIT or Apache, so this would be a departure.  Personally, I wouldn&#039;t be terribly effected by the license, since all the DiSo work is open source anyway.  The bigger concern is users of the libraries... I&#039;ll have to ping some of them and see if GPLv2 would be a problem for them.  My gut tells me to stay away from it and leave no room for doubt, though.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Jacob: yes, I have certainly been thinking about the license issue.  The other libraries I mentioned in my last post are either MIT or Apache, so this would be a departure.  Personally, I wouldn&#8217;t be terribly effected by the license, since all the DiSo work is open source anyway.  The bigger concern is users of the libraries&#8230; I&#8217;ll have to ping some of them and see if GPLv2 would be a problem for them.  My gut tells me to stay away from it and leave no room for doubt, though.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Santos</title>
		<link>http://willnorris.com/2009/03/http-client-library-for-php#comment-29919</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Fri, 20 Mar 2009 13:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://willnorris.com/?p=546#comment-29919</guid>
		<description>&lt;p&gt;You might have forgotten Zend Framework HTTP component or choose to not include it because it is larger than the HTTP API that is in WordPress.&lt;/p&gt;

&lt;p&gt;I&#039;ve thought about stripping the WordPress dependencies from the HTTP API myself and releasing it as a stand alone library. Never got around to it. And it would still be GPLv2.&lt;/p&gt;

&lt;p&gt;What you need to concern yourself, really, is the license. If you use the HTTP API from WordPress, than anything you create using it will have to be compatible with GPLv2, also the library will only be able to be used in GPLv2 software or compatible. Also, any software using it when running will become GPLv2.&lt;/p&gt;

&lt;p&gt;If you are not okay with that, then you should look at the other libraries or do the NIH approach.&lt;/p&gt;

&lt;p&gt;You will find that when developing your own library, then the PHP documentation isn&#039;t entirely correct and omits bugs in PHP that need to be addressed in your code.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You might have forgotten Zend Framework HTTP component or choose to not include it because it is larger than the HTTP API that is in WordPress.</p>

<p>I&#8217;ve thought about stripping the WordPress dependencies from the HTTP API myself and releasing it as a stand alone library. Never got around to it. And it would still be GPLv2.</p>

<p>What you need to concern yourself, really, is the license. If you use the HTTP API from WordPress, than anything you create using it will have to be compatible with GPLv2, also the library will only be able to be used in GPLv2 software or compatible. Also, any software using it when running will become GPLv2.</p>

<p>If you are not okay with that, then you should look at the other libraries or do the NIH approach.</p>

<p>You will find that when developing your own library, then the PHP documentation isn&#8217;t entirely correct and omits bugs in PHP that need to be addressed in your code.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Paul Weber</title>
		<link>http://willnorris.com/2009/03/http-client-library-for-php#comment-29916</link>
		<dc:creator>Stephen Paul Weber</dc:creator>
		<pubDate>Fri, 20 Mar 2009 13:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://willnorris.com/?p=546#comment-29916</guid>
		<description>&lt;p&gt;Native cURL in PHP is very common, but, as you say, not guarenteed.&lt;/p&gt;

&lt;p&gt;For simple requests, the most common thing to do is try cURL if it&#039;s around, and if it&#039;s not, fall back to sockets/fopen.   If there&#039;s no cURL and remote&#095;url&#095;fopen is off, things become much harder.  Thankfully this is extremely rare.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Native cURL in PHP is very common, but, as you say, not guarenteed.</p>

<p>For simple requests, the most common thing to do is try cURL if it&#8217;s around, and if it&#8217;s not, fall back to sockets/fopen.   If there&#8217;s no cURL and remote&#95;url&#95;fopen is off, things become much harder.  Thankfully this is extremely rare.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Will Norris</title>
		<link>http://willnorris.com/2009/03/http-client-library-for-php#comment-29903</link>
		<dc:creator>Will Norris</dc:creator>
		<pubDate>Fri, 20 Mar 2009 01:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://willnorris.com/?p=546#comment-29903</guid>
		<description>&lt;p&gt;@Joseph: that&#039;s actually a really interesting idea, and looks like a decent implementation of it.  I think a trimmed down version of WP_Http would be a bit smaller though, and I like that it provides a clean interface to code against instead of just the curl functions.  But that&#039;s a really cool library!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Joseph: that&#8217;s actually a really interesting idea, and looks like a decent implementation of it.  I think a trimmed down version of WP_Http would be a bit smaller though, and I like that it provides a clean interface to code against instead of just the curl functions.  But that&#8217;s a really cool library!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Scott</title>
		<link>http://willnorris.com/2009/03/http-client-library-for-php#comment-29902</link>
		<dc:creator>Joseph Scott</dc:creator>
		<pubDate>Fri, 20 Mar 2009 00:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://willnorris.com/?p=546#comment-29902</guid>
		<description>&lt;p&gt;I haven&#039;t looked at it in awhile, but this might be interesting:&lt;/p&gt;

&lt;p&gt;http://code.blitzaffe.com/pages/phpclasses/category/52/fileid/7&lt;/p&gt;

&lt;p&gt;It implements the curl API in pure PHP if the curl PHP extension isn&#039;t available.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t looked at it in awhile, but this might be interesting:</p>

<p><a href="http://code.blitzaffe.com/pages/phpclasses/category/52/fileid/7" rel="nofollow">http://code.blitzaffe.com/pages/phpclasses/category/52/fileid/7</a></p>

<p>It implements the curl API in pure PHP if the curl PHP extension isn&#8217;t available.</p>]]></content:encoded>
	</item>
</channel>
</rss>

