PHP Classes

PHP HTTP protocol client: HTTP client to access Web site pages

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum (147)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-07-11 (2 months ago) RSS 2.0 feedStarStarStarStar 69%Total: 47,170 This week: 1All time: 6 This week: 108Down
Version License PHP version Categories
httpclient 1.0.9BSD License3Networking, HTTP, Web services


Class that implements requests to Web resources using the HTTP protocol.

It features:

- May submit HTTP requests with any method, to any page, to any server, connecting to any port.
- Provides support to setup connection and request arguments from a given URL.
- May submit requests via a proxy server with support for authentication if necessary.
- May establish connections via a SOCKS server.
- Supports HTTP direct access or proxy based authentication mechanisms via SASL class library like HTTP Basic, HTTP Digest or NTLM (Windows or Samba).
- Support secure connections (https) via Curl library with SSL support, or at least PHP 4.3.0 with OpenSSL support, or via a non-SSL HTTP proxy server.
- Supports accessing secure pages using SSL certificates and private keys using Curl library
- Supports user defined request headers.
- Supports POST requests with a user defined array of form values.
- Supports POST requests with a user defined request bodies for instance for making requests to SOAP services.
- Supports streaming requests that require uploading large amounts of data of undefined length in small chunks to avoid exceeding PHP memory limits
- Supports requests to sites hosting virtual Web servers.
- Retrieves the HTTP response headers and body data separately.
- Support HTTP 1.1 chunked content encoding
- Supports session and persistent cookies.
- Provides optional handling of redirected pages.
- Supports defining connection and data transfer timeout values.
- Can output connection debug information in plain text or formatted as HTML.
- An add-on class is provided to login to Yahoo sites and perform actions on the behalf of the logged users like exporting the user address book or sending invitation to a group.


Recommendation for a PHP class to access faucet pay
Access Faucet Pay API

Microsoft Text to Speech PHP API program
Microsoft text to speech PHP API program

Link Checker
Find broken links in a Web site

Multiple search engine search retrieval and storage
Need a engine to query different search engines

Upload file to directory of my server with download link
How I can upload this file to my server with download link

Access file and get response from hosted domain to localhost
Send variable values from localhost to a PHP script in a domain

What is the best PHP http client class?
HTTP client for PHP version 5.3

Picture of Manuel Lemos
  Performance   Level  
Name: Manuel Lemos is available for providing paid consulting. Contact Manuel Lemos .
Classes: 45 packages by
Country: Portugal Portugal
Age: 54
All time rank: 1
Week rank: 7 Down1 in Portugal Portugal Equal

  • httpclient.gif
  Files folder image Files  
File Role Description
Accessible without login Plain text file classmaps.php Aux. Class maps definition
Plain text file http.php Class HTTP class file
Accessible without login Plain text file LICENSE.txt Lic. BSD like license
Accessible without login Plain text file test_cookies.php Test Unit test script to verify cookie manipulation functions
Accessible without login Plain text file test_http.php Example HTTP class test page script
Accessible without login Plain text file test_http_cookies.php Example Script to test cookie support
Accessible without login Plain text file test_http_image_request.php Example Example script on how to request an image from a remote site to made available through a local server
Accessible without login Plain text file test_http_post.php Example Emulate a form submission using HTTP POST submitting form field values including file uploads
Accessible without login Plain text file test_http_soap.php Example Example script on how to make a request to SOAP service
Accessible without login Plain text file yahoo_export_address_book.php Example Script to login in Yahoo and export the user address book
Accessible without login Plain text file yahoo_group_invite.php Example Script to login in Yahoo and invite users to a Yahoo!Groups mailing list
Plain text file yahoo_user.php Class Class to login and access resources for Yahoo registered users 33KB
Downloadhttpclient-2023-07-11.tar.gz 29KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Simple Authentication and Security Layer Download .zip .tar.gz When the HTTP server requires authentication, the SASL package provides support for implementing authentication mechanisms like: Basic, Digest, PLAIN, LOGIN, CRAM-MD5, NTLM (Windows or Linux/Unix with Samba). Conditional
 Version Control Reuses Unique User Downloads Download Rankings  
This week:1
All time:6
This week:108Down
User Ratings User Comments (17)
 All time
Excellent package.
9 years ago (Diol)
like it
9 years ago (Samir Das)
I've been using this class on a client side PHP-GTK2/Gnope GU...
10 years ago (NotInterested)
Good ides and job!
12 years ago (Victor Storm)
Great class, widely used.
12 years ago (MWL Online)
14 years ago (kishore kumar)
stable script, robust but missing explanation of all options/...
14 years ago (Rosetree)
Hi, I started using your class instead of Snoopy in my librar...
15 years ago (Kepler Gelotte)
I really loved you HTTP and yahoo_user classes.
14 years ago (banbuu_nattchan)
Wonderful pack!
14 years ago (Alex B. Snet)
Excellent work, sir - this has saved a huge amount of effort.
15 years ago (Ken)
This class saved my quite a bit of low-level socket programmi...
15 years ago (Klaus Kuplen)
Huge great thanks!
15 years ago (dasdasd)
Dear php professional that calss is really good but how can w...
15 years ago (Abdulkadir KUCUK)
Very useful class
15 years ago (Murilo Klock Ferreira)
Good Class
15 years ago (Mark Watson)
The Lemos HttpClient class is the BEST-OF-THE-BEST (no doubt).
15 years ago (LeoLeo)