Login   Register  
PHP Classes

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 .
Classes: 37 packages by
Country: Paraguay Paraguay
Age: 26
All time rank: 71 in Paraguay Paraguay
Week rank: 25 Down1 in Paraguay Paraguay Equal
Innovation award
Innovation award
Nominee: 24x

Winner: 5x

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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: 2495 users
All time rank: 1426
Week users: 1 user
Week rank: 1521 Down
  Groups   Rate classes User ratings   Dependencies  
  Dependents   Applications   Files Files  

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%) Sufficient (75%) - Not sure (56%) - - Not sure (47%) 1763
Month: Not yet rated by the users

  Packages needed by this class  
Class DownloadWhy it is needed Dependency
PHP HTTP protocol client Download .zip .tar.gz This class is the base for open HTTP Required

  Other classes that need this package  
Class Why it is needed Dependency
gFeed To enable the Auto discover RSS Recommended

  Applications that use this package  
No pages of applications that use this class were specified.
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...

Install with Composer Install with Composer - 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.