PHP Classes

HTTP client class: Access Web resources via HTTP with sockets or Curl

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 1,978 All time: 1,992 This week: 673Up
Version License PHP version Categories
httpclass 0.1BSD License4.0Networking, HTTP
Description 

Author

This class can be used to access Web resources using either sockets opened with fsockopen or Curl library depending on which is available in the current PHP setup. It features:

- Supports to HTTP Basic authentication
- Supports defining custom request headers
- Supports defining connection timeout values
- Supports defining user agent and referral URL
- Supports both user-defined and persistent cookies
- Supports secure connections (HTTPS)
- Supports adding requests parameters for both GET and POST methods
- Supports automatic redirection with maximum redirect limits
- Returns HTTP response headers and response body data separately

Picture of Md Emran Hasan
Name: Md Emran Hasan <contact>
Classes: 2 packages by
Country: Bangladesh Bangladesh
Age: 41
All time rank: 3629 in Bangladesh Bangladesh
Week rank: 192 Up3 in Bangladesh Bangladesh Up

  Files folder image Files (5)  
File Role Description
Plain text file class.http.php Class The main class
Accessible without login Plain text file test_basecamp.php Example Test file showing logging into basecamp.
Accessible without login Plain text file test_fbapp.php Example Test file showing fetching of facebook application page.
Accessible without login Plain text file test_feed.php Example Test file showing fetching of protected feed.
Accessible without login Plain text file test_term_extract.php Example Test file showing invoking Yahoo Term Extraction API.

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,978
This week:0
All time:1,992
This week:673Up
User Ratings User Comments (1)
 All time
Utility:87%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:81%StarStarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1141