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
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-07-30 (7 years ago) RSS 2.0 feedStarStarStar 52%Total: 2,513 All time: 1,424 This week: 1,366Up
Version License PHP version Categories  
ghttp 1.0Public Domain3.0HTTP, Stream wrappers
Description Author  

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
Name: Cesar D. Rodas is available for providing paid consulting. Contact Cesar D. Rodas .
Classes: 37 packages by
Country: Paraguay Paraguay
Age: 27
All time rank: 71 in Paraguay Paraguay
Week rank: 35 Down1 in Paraguay Paraguay Equal
Innovation award
Innovation award
Nominee: 24x

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...

Downloadghttp-2007-07-30.zip 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  
 0%1Total:2,513All time:1,424
 This week:0This week:1,366Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:-
Examples:65%StarStarStarStar
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:1496