PHP Classes

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

Recommend this page to a friend!

  Author Author  
Name: Manuel Lemos <contact>
Classes: 38 packages by
Country: Portugal Portugal
Age: 48
All time rank: 1
Week rank: 2 Down1 in Portugal Portugal Equal

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

  Classes of Manuel Lemos  >  PHP HTTP protocol client  >  Download Download .zip .tar.gz  >  Support forum Support forum (146)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP HTTP protocol client
Base name: httpclient
Description: HTTP client to access Web site pages
Version: 1.0.5
PHP version: 3
License: BSD License
All time users: 44098 users
All time rank: 7
Week users: 27 users
Week rank: 27 Down
  Groups   Screenshots Screenshots   Rate classes User ratings   Dependencies  
  Dependents   Trackback   Applications   Files Files  

Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes

  Files folder image Screenshots  
File Role Description
Accessible without login Image file httpclient.gif Screen Submitting a SOAP request via HTTP POST


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

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (89%) Good (86%) - Good (82%) Sufficient (78%) - Sufficient (69%) 386
Month: Not yet rated by the users

  Packages needed by this class  
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

  Other classes that need this package  
Class Why it is needed Dependency
AIM connectivity to server Required
Akismet class For http protocol Required
Amazon S3 Stream Wrapper This class is the base for open HTTP Communication Required
File Exchange Protocol The Filesystem is working over HTTP/1.0 Required
French White Pages HTTP Post Query Required
Freshmeat project query class Access the Freshmeat site with HTTP protocol Required
From Browser - Youtube Upload For HTTP negociation Required
gHttp This class is the base for open HTTP Required
PHP Git In order to run run git_http_client.php Conditional
PHP Git Client Class Access GIT repositories via HTTP Required
PHP OAuth Library Send HTTP request to OAuth servers Required
PHP Print IPP IPP protocol transits by http. Here is a compatible and stable http backend. Conditional
PHP SVN Client for http(s) protocol Required
PHP Twitter Feed Send HTTP requests using the OAuth class Required
PHP Webmaster Tools API Send HTTP requests to the Webmaster Tools API Required
SOAP server class Used in the SOAP client example script Optional
WAP Push The wPush uses this class for the POST query. Required

  Pages that reference this package  
12 cosas que necesitas saber acerca PHP
Hola a todos, leyendo mi mailing list de PHPClasses me topo con un artículo interesante en inglés llamado “12 things you need to know about PHP” en un blog llamado Compdigitec Labs...
12 things you need to know about PHP
Are you still thinking that PHP is an web-only language or is “not a real language”?...
Alternative to CURL in Moriarty
I just checked in a small update to moriarty that might solve a problem some people have experienced using curl...
Blast from the past
About a year ago I was dabbling and creating a simple PHP webapp at work to allow us to perform various operations on our platform stores used in development...
http client
I’ve found a great PHP script that can essentially turn a web server into a virtual browser...
PHP HTTP Class 2
Revisiting the topic of my previous post, I’ve played around some more with this PHP HTTP Class...
Save yourself some work: important PHP classes/libraries/projects for developers
From sending mail with attachments to fetching content via RSS to sending a trackback - a list of common coding tasks that is solved with good existing code...

Latest pages that reference packages Latest pages that reference packages

  Applications that use this package  
Uses this class to download new versions of the program and the IP to country database files

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

Install with Composer Install with Composer - Download Download all files: httpclient.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.