diff --git a/README.md b/README.md index 36e08ebbb..22166acc9 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ the new BSD license) and has no dependencies, except for PHP 5.6+. Despite PHP's use as a language for the web, its tools for sending HTTP requests are severely lacking. cURL has an -[interesting API](http://php.net/manual/en/function.curl-setopt.php), to say the +[interesting API](https://www.php.net/curl-setopt), to say the least, and you can't always rely on it being available. Sockets provide only low level access, and require you to build most of the HTTP response parsing yourself. @@ -138,7 +138,7 @@ set of tests. We're not quite there yet, but [we're getting close][codecov]. [codecov]: http://codecov.io/github/WordPress/Requests To run the test suite, first check that you have the [PHP -JSON extension ](http://php.net/manual/en/book.json.php) enabled. Then +JSON extension ](https://www.php.net/book.json) enabled. Then simply: ```bash $ phpunit diff --git a/docs/hooks.md b/docs/hooks.md index b8fa427e8..8772a0bfe 100644 --- a/docs/hooks.md +++ b/docs/hooks.md @@ -49,7 +49,7 @@ Available Hooks Parameters: `string &$response, array &$info` - `$info` contains the associated array as defined in the return value for [curl_getinfo()](http://php.net/manual/en/function.curl-getinfo.php#refsect1-function.curl-getinfo-returnvalues). + `$info` contains the associated array as defined in the return value for [curl_getinfo()](https://www.php.net/curl-getinfo#refsect1-function.curl-getinfo-returnvalues). * **`fsockopen.before_request`** @@ -77,7 +77,7 @@ Available Hooks Parameters: `string &$response, array &$info` - `$info` contains the associated array as defined in the return value for [stream_get_meta_data()](http://php.net/manual/en/function.stream-get-meta-data.php#refsect1-function.stream-get-meta-data-returnvalues). + `$info` contains the associated array as defined in the return value for [stream_get_meta_data()](https://www.php.net/stream-get-meta-data#refsect1-function.stream-get-meta-data-returnvalues). diff --git a/docs/usage-advanced.md b/docs/usage-advanced.md index adfdda9a3..6c82ed8cf 100644 --- a/docs/usage-advanced.md +++ b/docs/usage-advanced.md @@ -67,8 +67,8 @@ See also the [related PHP][php-bug-47030] and [OpenSSL-related][php-bug-55820] bugs in PHP for more information on Subject Alternate Name field. [Mozilla certificate authority list]: http://www.mozilla.org/projects/security/certs/ -[php-bug-47030]: https://bugs.php.net/bug.php?id=47030 -[php-bug-55820]:https://bugs.php.net/bug.php?id=55820 +[php-bug-47030]: https://php.net/47030 +[php-bug-55820]: https://php.net/55820 *** diff --git a/docs/usage.md b/docs/usage.md index 4a44d9afe..95534005f 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -54,7 +54,7 @@ You'll probably also want to pass in some data. You can pass in either a string, an array or an object (Requests uses [`http_build_query`][build_query] internally) as the third parameter (after the URL and headers): -[build_query]: http://php.net/http_build_query +[build_query]: https://www.php.net/http_build_query ```php $data = array('key1' => 'value1', 'key2' => 'value2'); diff --git a/library/Requests.php b/library/Requests.php index 4bf09df10..d452bd418 100644 --- a/library/Requests.php +++ b/library/Requests.php @@ -872,8 +872,8 @@ public static function decompress($data) { * * @since 2.8.1 * @link https://core.trac.wordpress.org/ticket/18273 - * @link https://secure.php.net/manual/en/function.gzinflate.php#70875 - * @link https://secure.php.net/manual/en/function.gzinflate.php#77336 + * @link https://www.php.net/gzinflate#70875 + * @link https://www.php.net/gzinflate#77336 * * @param string $gz_data String to decompress. * @return string|bool False on failure. diff --git a/library/Requests/Transport/cURL.php b/library/Requests/Transport/cURL.php index 01bcf3b71..4cd10866a 100644 --- a/library/Requests/Transport/cURL.php +++ b/library/Requests/Transport/cURL.php @@ -33,7 +33,7 @@ class Requests_Transport_cURL implements Requests_Transport { /** * Information on the current request * - * @var array cURL information array, see {@see https://secure.php.net/curl_getinfo} + * @var array cURL information array, see {@see https://www.php.net/curl_getinfo} */ public $info; @@ -513,7 +513,7 @@ public function stream_body($handle, $data) { * Format a URL given GET data * * @param string $url - * @param array|object $data Data to build query using, see {@see https://secure.php.net/http_build_query} + * @param array|object $data Data to build query using, see {@see https://www.php.net/http_build_query} * @return string URL with data */ protected static function format_get($url, $data) { diff --git a/library/Requests/Transport/fsockopen.php b/library/Requests/Transport/fsockopen.php index 56f94c99f..34b65d4a6 100644 --- a/library/Requests/Transport/fsockopen.php +++ b/library/Requests/Transport/fsockopen.php @@ -30,7 +30,7 @@ class Requests_Transport_fsockopen implements Requests_Transport { /** * Stream metadata * - * @var array Associative array of properties, see {@see https://secure.php.net/stream_get_meta_data} + * @var array Associative array of properties, see {@see https://www.php.net/stream_get_meta_data} */ public $info; @@ -351,7 +351,7 @@ protected static function accept_encoding() { * Format a URL given GET data * * @param array $url_parts - * @param array|object $data Data to build query using, see {@see https://secure.php.net/http_build_query} + * @param array|object $data Data to build query using, see {@see https://www.php.net/http_build_query} * @return string URL with data */ protected static function format_get($url_parts, $data) {