PHP Classes

gHttp: Stream wrapper to send HTTP POST and GET requests

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 2,589 All time: 1,475 This week: 80Up
Version License PHP version Categories
ghttp 1.0Public Domain3.0HTTP, Stream wrappers


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.

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
Picture of Cesar D. Rodas
  Performance   Level  
Name: Cesar D. Rodas is available for providing paid consulting. Contact Cesar D. Rodas .
Classes: 38 packages by
Country: Paraguay Paraguay
Age: 36
All time rank: 71 in Paraguay Paraguay
Week rank: 258 Down1 in Paraguay Paraguay Equal
Innovation award
Innovation award
Nominee: 25x

Winner: 5x

  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... 4KB
Downloadghttp-2007-07-30.tar.gz 3KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHP HTTP protocol client Download .zip .tar.gz This class is the base for open HTTP Required
 Version Control Reuses Unique User Downloads Download Rankings  
This week:0
All time:1,475
This week:80Up
User Ratings User Comments (1)
 All time
6 years ago (zinsou A.A.E.Mose)