|
|
Detailed descriptionClass 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.
Freshmeat project | Project record: | httpclass | Popularity score: | 329.37 | Vitality score: | 36.56 |
|
Packages needed by this class| Class | Dependency | Why it is needed | | Simple Authentication and Security Layer | Conditional | 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). | Packages that need this classTrackback links
Files| File | Role | Description | Size | Date | http.php | Class | HTTP class file | 63,263 | 2011-01-26 18:20 | LICENSE.txt | Lic. | BSD like license | 1,634 | 2006-04-17 12:44 | test_cookies.php | Test | Unit test script to verify cookie manipulation functions | 2,031 | 2007-02-07 14:23 | test_http.php | Example | HTTP class test page script | 7,033 | 2011-01-26 18:22 | test_http_cookies.php | Example | Script to test cookie support | 2,272 | 1999-12-26 22:20 | 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 | 1,278 | 2003-10-28 22:22 | test_http_post.php | Example | Emulate a form submission using HTTP POST submitting form field values including file uploads | 3,160 | 2004-08-11 21:15 | test_http_soap.php | Example | Example script on how to make a request to SOAP service | 3,329 | 2008-01-20 15:59 | yahoo_export_address_book.php | Example | Script to login in Yahoo and export the user address book | 1,247 | 2006-04-09 23:52 | yahoo_group_invite.php | Example | Script to login in Yahoo and invite users to a Yahoo!Groups mailing list | 1,503 | 2006-04-09 23:49 | yahoo_user.php | Class | Class to login and access resources for Yahoo registered users | 7,207 | 2007-02-07 14:24 | Download all files: httpclient-2011-01-26.zip (32KB) httpclient-2011-01-26.tar.gz (28KB) |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|