Login   Register  
PHP Classes
elePHPant
Icontem

gHttp: Stream wrapper to send HTTP POST and GET requests

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Cesar D. Rodas
Name: Cesar D. Rodas is available for providing paid consulting. Contact Cesar D. Rodas .
Packages: 37 Browse all classes by Cesar D. Rodas Browse all classes by
Country: Paraguay Paraguay - PHP jobs in Paraguay
Age: 26
All time rank: 71 in Paraguay Paraguay
Week rank: 22 Down1 in Paraguay Paraguay Equal
Innovation award
Innovation award
Nominee: 24x

Winner: 5x


  Detailed description   Download Download .zip .tar.gz  
This class implements an HTTP stream wrapper that can be used to access Web pages like files.

It can submit HTTP POST and GET requests using regular PHP access functions with support for authentication and using proxy servers.

It provides the stream wrappers ghttp, phttp, ghttps and phttps for performing HTTP GET and POST requests respectively using SSL or not.

The can also be used as replacement of the regular HTTP stream wrappers under PHP 5.1 or later.

Optionally, it can cache the responses of the same HTTP requests in files of a given directory.

  Classes of Cesar D. Rodas  >  gHttp  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: gHttp
Base name: ghttp
Description: Stream wrapper to send HTTP POST and GET requests
Version: 1.0
PHP version: 3.0
License: Public Domain
All time users: 2482 users
All time rank: 1418
Week users: 1 user
Week rank: 1886 Down
 
  Groups   Rate classes User ratings   Dependencies  
  Dependents   Applications   Files Files  

  Groups  
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image Stream wrappers Access resources like regular files View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
August 2007
Number 10
PHP can access remote Web pages as if they are files since stream wrapper support was introduced in version 4.3.

However, the current built-in HTTP stream wrapper has some limitations that make it difficult to send special kinds of HTTP requests.

This package provide alternative stream wrappers that overcome some of the limitations of the original PHP HTTP stream wrappers, like submitting POST requests, accessing sites that requires special types of authentication, using HTTP proxies, and the support for HTTP response caches.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (68.8%) Sufficient (75.0%) - Not sure (56.2%) - - Not sure (47.5%) 1744
Month: Not yet rated by the users

  Packages needed by this class  
Class Dependency Why it is needed
PHP HTTP protocol client Required This class is the base for open HTTP

  Packages that need this class  
Class Dependency Why it is needed
gFeed Recommended To enable the Auto discover RSS

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file gHttp.php Class Main class
Accessible without login Plain text file gHttp.test.php Example example
Accessible without login Plain text file gHttp.test.trackback.php Example Test of POST query...

Download Download all files: ghttp.tar.gz ghttp.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.