News Feed
Jobs Feed
Sections




News Archive
Giorgio Sironi's Blog:
HTTP verbs in PHP
April 08, 2010 @ 10:04:29

In a recent post to his blog Giorgio Sironi takes a look at HTTP "verbs" and their handling in PHP, both on the incoming and outgoing sides.

While PHP is capable of performing HTTP requests towards external servers with any method, either via the HTTP extension or by opening streams directly, the support of the various GET, POST, PUT and other verbs on the receiving side of HTTP requests is a bit more complicated.

He notes that the "more interesting" ones are defined in the HTTP 1.1 spec and, unfortunately, those are ones not natively supported by PHP (like POST and GET are). He recommends a workaround for the problem so you can still work with data that clients PUT or DELETE - using a fopen call to the "php://input" stream on the connection and pulling in the raw data. Not idea, but definitely functional.

0 comments voice your opinion now!
http verb rest tutorial


blog comments powered by Disqus

Similar Posts

PHPEveryDay.com: New Tutorials Posted (Web Content/Networking)

The Bakery: ToniAcl Component Tutorial

Refulz Blog: Yii Framework - Scenarios for Conditional Multiple Validation Rules

HowTo Forge: Installing And Working With Xoops Under Ubuntu 6.10

Till Klampaeckel's Blog: Yahoo: oauth_problem=consumer_key_rejected


Community Events











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


usergroup development database functional zendframework2 phpunit rest community framework conference introduction series podcast testing unittest opinion language interview release symfony2

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