News Feed
Sections




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

PHPMaster.com:
REST - Can You do More than Spell It? Part 4
May 21, 2012 @ 08:44:26

PHPMaster.com has posted the latest tutorial in their series covering RESTful APIS - part four of "REST - Can you do More than Spell it?" In this latest part of the series, they focus on something very key to RESTful services, the HTTP spec (and headers).

We're getting close to the end now, and the only thing remaining is to discuss a little more about the protocol you'll most likely use in any RESTful application that you write. Because HTTP is so often used with REST, that's the protocol I'd like to focus on.

He goes through the structure of a typical (raw) HTTP header and talks about some of the more common headers and what actions/settings they represent. He includes examples of setting headers (with header, naturally) and a curl example showing how to set the request headers. The tutorial is finished off with a brief mention of custom HTTP headers and the the good and bad that comes with them.

0 comments voice your opinion now!
rest api tutorial series http spec protocol status header


blog comments powered by Disqus

Similar Posts

DeveloperTutorials.com: How to Install PHP 5 on Linux

PHPEasy.co.uk: Design Patterns - The Singleton Pattern

Amazon Web Services PHP Blog: Provision an Amazon EC2 Instance with PHP

Voices of the ElePHPant: It's the Booze Talking #5 - PHP Community...again (Part #2)

Daniel Cousineau's Blog: ImagePlane and some simple OOP designs


Community Events





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


tips list library introduction laravel podcast deployment zendserver api framework update symfony release interview install opinion language series community package

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