©
Dokumen ini menggunakan Manual laman web PHP Cina Lepaskan
The HTTP extension aims to provide a convenient and powerful set of functionality for major applications.
Note: If you are looking for documentation of version 2 of this extension, please find a complete reference at » https://mdref.m6w6.name/http.
The HTTP extension eases handling of HTTP URLs, dates, redirects, headers and messages in a HTTP context (both incoming and outgoing). It also provides means for client negotiation of preferred language and charset, as well as a convenient way to exchange arbitrary data with caching and resuming capabilities.
Also provided is a powerful request and parallel interface (PHP 5+), if the extension is built with cURL support.
Additionally to the API reference in this manual you can find information about how to install and configure as well as which global constants are predefined in the following sections:
[#1] stephen at reporo dot com [2015-09-03 10:23:19]
If you want to install the version documented here (recommended):
pecl install http://pecl.php.net/get/pecl_http-1.7.6.tgz
[#2] lsloan-php dot net@umich dot edu [2015-06-04 18:10:01]
Note that the documentation for the http module is out of date!
If you install the module via pecl today, you get v2.4.3 of the module or newer. The API of v2.* is completely different than that shown here. It's very important that you follow the link shown in the documentation here to reach the correct documentation. Hopefully that documentation will appear here on php.net soon.