News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matt Curry's Blog:
HttpSocket Instead of cURL in CakePHP Apps
February 17, 2009 @ 08:48:04

In this new post to his blog Matt Curry suggests the use of a library in the CakePHP framework, HttpSocket library, over the more traditional cURL tool.

There are a few new Bakery articles lately that use cURL for remote calls (see here and here), rather then Cake's HttpSocket lib. This is probably because HttpSocket doesn't have a mention in the CookBook. [...] Here's a quick primer on using HttpSocket as an alternative.

He shows how the library can replace a ten line piece of code with a seven line (spaced out for the configuration) call to the HttpSocket class authenticating against the twitter API.

0 comments voice your opinion now!
cakephp httpsocket framework curl example replace


blog comments powered by Disqus

Similar Posts

Community News: CakePHP Project Launches "The Show" (Live/Podcast Series)

NetTuts.com: 30+ Awesome CodeIgniter Tutorials for all Skill Levels

Scott Johnson\'s Blog: Looking at the Zend Feed Library Functionality

IBM developerWorks: Understanding the Zend Framework, Part 2 (MVC & a Database)

IBM developerWorks: Cook up Web sites fast w/CakePHP, Part 1: Adding related information & services


Community Events





Don't see your event here?
Let us know!


package introduction community voicesoftheelephpant opinion laravel series composer interview language update library release symfony security podcast framework tool install version

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework