<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 10:53:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: Deprecated Methods in Pecl_Http]]></title>
      <guid>http://www.phpdeveloper.org/news/15347</guid>
      <link>http://www.phpdeveloper.org/news/15347</link>
      <description><![CDATA[<p>
In a quick post to her blog <i>Lorna Mitchell</i> mentions <a href="http://www.lornajane.net/posts/2010/Deprecated-Methods-in-Pecl_Http">a deprecated method in pecl_http</a> that could cause problems for you down the road - addRawPostData.
</p>
<blockquote>
I'm a big fan of <a href="http://pecl.php.net/package/pecl_http">pecl_http</a>, which I use quite often as I work so regularly with APIs and on systems where I can get it installed, it's much nicer than PHP's curl extension. Recently though I've been often seeing output which reads: Function HttpRequest::addRawPostData() is deprecated
</blockquote>
<p>
The alternative is to use the "setBody()" method on the HttpRequest object instead. This, in effect, does the same thing and sets the contents of the message to the raw data you'd like to post. Unfortunately, the PHP manual page doesn't reflect that this method is deprecated. You can find out more about the functionality the "pecl_http" extension has to offer <a href="http://us.php.net/manual/en/book.http.php">here</a>. It's a very flexible and reliable way for your scripts to interact with remote servers via HTTP calls.
</p>]]></description>
      <pubDate>Thu, 28 Oct 2010 10:04:59 -0500</pubDate>
    </item>
  </channel>
</rss>
