News Feed
Jobs Feed
Sections




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

Lorna Mitchell's Blog:
Three Ways to Make a POST Request from PHP
January 19, 2010 @ 08:45:33

Lorna Mitchell has a new post to her blog looking at three different ways you can make a POST request to a server - cURL, Pecl_Http non-OOP and Pecl_Http with the OOP interface.

I've been doing a lot of work with services and working with them in various ways from PHP. There are a few different ways to do this, PHP has a curl extension which is useful, and if you can add PECL extensions then pecl_http is a better bet but there are a couple of different ways of using it. This post shows all these side-by-side.

Code snippets are included for each showing a request to the Flickr API. Be sure to check out the post's comments for more great ideas (like streams, the PEAR HTTP_Client package, Zend_Http_Client and other request types without cURL).

0 comments voice your opinion now!
post request curl pecl tutorial


blog comments powered by Disqus

Similar Posts

Working Software Blog: Escaping single and double quotes for use with XPath queries in PHP

NetTuts.com: Relational Databases for Dummies

Job Posting: Dutch Open Projects BV Seeks Experienced PHP Developer (Leusden, The Netherlands)

Lars Strojny's Blog: Dependency Injection Container Refactorings, Part Two

Job Posting: Telio Telecom AS Seeks Senior Web Developer (Oslo, Norway)


Community Events











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


framework opinion security component introduction symfony2 package facebook code unittest hack install example release podcast application hhvm overview language composer

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