News Feed
Sections




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

Paul Jones' Blog:
Brief Intro to Solar_Http_Request and Response
July 17, 2007 @ 08:42:00

Paul Jones gives readers a quick overview of two of the components in the Solar framework in a new post to his blog today - the Solar_Http_Request class and it's opposite, the Solar_Http_Response class.

As I noted in an earlier post, Solar how has classes to represent simple HTTP requests and responses.

The Solar_Http_Request functionality is only for making requests, but uses adapters to make it easier to swap out the connection method later on - plus it's fluent. He includes an example of it in action, calling a remote page with a GET, POST and a customized request (including special headers)

The other side of the equation, Solar_Http_Response allows you to set all of the response information manually (again, fluently) to make custom responses simple.

0 comments voice your opinion now!
solar solarhttprequest solarhttpresponse fluent solar solarhttprequest solarhttpresponse fluent


blog comments powered by Disqus

Similar Posts

Evert Pot's Blog: PHPRPC and PHP frameworks

Paul Jones' Blog: Quick Hits: New Solar Blog Entries

Paul Jones' Blog: Brief Intro to Solar_Http_Request and Response

Ivo Jansch\'s Blog: The danger of Fluent interfaces

ProDevTips Blog: Fluent Arrays and Strings in PHP - Adding JSON and more


Community Events





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


symfony tips conference code zendserver threedevsandamaybe bugfix podcast community laravel api development language list interview deployment introduction series framework release

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