News Feed
Sections




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

Josh Gilman's Blog:
HTTPSock Class
January 26, 2007 @ 13:19:09

Josh Gilman has posted a new class that he's developed to make it simple to create the HTTP headers for any connection.

It also reads back the host's reply and parses any header and cookie information. Supports GZIP encoding as well. The source can be seen here. Feel free to use it, just don't take any credit for yourself. More to come soon!

The code is pretty simple - all OOP and in a class to make it easy and the assemble_header function makes you a single function call away from your shiny new headers for your message.

0 comments voice your opinion now!
httpsock class library create http header httpsock class library create http header


blog comments powered by Disqus

Similar Posts

Refulz Blog: Traits in PHP 5.4 - Why we need Traits

Soledad Pendaes' Blog: PHP will never have a (real) Rails-like framework

Elizabeth Smith's Blog: CC_Tooltips - easy php-gtk tooltip management

Rich Zygler's Blog: People work with WS-* web services in PHP? Why?

Chris Hartjes' Blog: How To HTTP-PUT A File Somewhere Using PHP


Community Events





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


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

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