diff --git a/examples/download_file_with_redirect.php b/examples/download_file_with_redirect.php index 8a65285..5217196 100644 --- a/examples/download_file_with_redirect.php +++ b/examples/download_file_with_redirect.php @@ -4,7 +4,7 @@ require __DIR__ . '/../vendor/autoload.php'; use Curl\Curl; $start_url = 'https://php.net/images/logos/php-med-trans.png'; -$final_url = 'https://secure.php.net/images/logos/php-med-trans.png'; +$final_url = 'https://www.php.net/images/logos/php-med-trans.png'; $curl = new Curl(); $curl->setOpt(CURLOPT_FOLLOWLOCATION, true); diff --git a/examples/download_files.php b/examples/download_files.php index fa66fd9..997e67d 100644 --- a/examples/download_files.php +++ b/examples/download_files.php @@ -4,5 +4,5 @@ require __DIR__ . '/../vendor/autoload.php'; use Curl\Curl; $curl = new Curl(); -$curl->download('https://secure.php.net/images/logos/php-med-trans.png', '/tmp/php-med-trans.png'); +$curl->download('https://www.php.net/images/logos/php-med-trans.png', '/tmp/php-med-trans.png'); $curl->download('https://upload.wikimedia.org/wikipedia/commons/c/c1/PHP_Logo.png', '/tmp/PHP_Logo.png'); diff --git a/examples/download_files_with_callback.php b/examples/download_files_with_callback.php index 45f8b5f..8120d99 100644 --- a/examples/download_files_with_callback.php +++ b/examples/download_files_with_callback.php @@ -11,5 +11,5 @@ $callback = function ($instance, $tmpfile) { }; $curl = new Curl(); -$curl->download('https://secure.php.net/images/logos/php-med-trans.png', $callback); +$curl->download('https://www.php.net/images/logos/php-med-trans.png', $callback); $curl->download('https://upload.wikimedia.org/wikipedia/commons/c/c1/PHP_Logo.png', $callback); diff --git a/examples/get_response_cookies.php b/examples/get_response_cookies.php index ba44cf6..9eaf744 100644 --- a/examples/get_response_cookies.php +++ b/examples/get_response_cookies.php @@ -4,7 +4,7 @@ require __DIR__ . '/../vendor/autoload.php'; use Curl\Curl; $curl = new Curl(); -$curl->get('https://secure.php.net/'); +$curl->get('https://www.php.net/'); if ($curl->error) { echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n"; diff --git a/examples/multi_curl_download_files.php b/examples/multi_curl_download_files.php index 9563914..49ab147 100644 --- a/examples/multi_curl_download_files.php +++ b/examples/multi_curl_download_files.php @@ -4,6 +4,6 @@ require __DIR__ . '/../vendor/autoload.php'; use Curl\MultiCurl; $multi_curl = new MultiCurl(); -$multi_curl->addDownload('https://secure.php.net/images/logos/php-med-trans.png', '/tmp/php-med-trans.png'); +$multi_curl->addDownload('https://www.php.net/images/logos/php-med-trans.png', '/tmp/php-med-trans.png'); $multi_curl->addDownload('https://upload.wikimedia.org/wikipedia/commons/c/c1/PHP_Logo.png', '/tmp/PHP_Logo.png'); $multi_curl->start(); diff --git a/examples/multi_curl_download_files_with_callback.php b/examples/multi_curl_download_files_with_callback.php index 0228ae0..eb03063 100644 --- a/examples/multi_curl_download_files_with_callback.php +++ b/examples/multi_curl_download_files_with_callback.php @@ -11,6 +11,6 @@ $callback = function ($instance, $tmpfile) { }; $multi_curl = new MultiCurl(); -$multi_curl->addDownload('https://secure.php.net/images/logos/php-med-trans.png', $callback); +$multi_curl->addDownload('https://www.php.net/images/logos/php-med-trans.png', $callback); $multi_curl->addDownload('https://upload.wikimedia.org/wikipedia/commons/c/c1/PHP_Logo.png', $callback); $multi_curl->start(); diff --git a/examples/multi_curl_download_files_with_callbacks.php b/examples/multi_curl_download_files_with_callbacks.php index 3a8a91c..a3d8add 100644 --- a/examples/multi_curl_download_files_with_callbacks.php +++ b/examples/multi_curl_download_files_with_callbacks.php @@ -16,6 +16,6 @@ $multi_curl->complete(function ($instance) { echo 'call to "' . $instance->url . '" completed.' . "\n"; }); -$multi_curl->addDownload('https://secure.php.net/images/logos/php-med-trans.png', '/tmp/php-med-trans.png'); +$multi_curl->addDownload('https://www.php.net/images/logos/php-med-trans.png', '/tmp/php-med-trans.png'); $multi_curl->addDownload('https://upload.wikimedia.org/wikipedia/commons/c/c1/PHP_Logo.png', '/tmp/PHP_Logo.png'); $multi_curl->start(); diff --git a/examples/progress.php b/examples/progress.php index 478972c..b8e67a4 100644 --- a/examples/progress.php +++ b/examples/progress.php @@ -14,4 +14,4 @@ $curl->progress(function ($client, $download_size, $downloaded, $upload_size, $u $percent = floor($downloaded * 100 / $download_size); echo ' ' . $percent . '%' . "\r"; }); -$curl->download('https://secure.php.net/distributions/manual/php_manual_en.html.gz', '/tmp/php_manual_en.html.gz'); +$curl->download('https://www.php.net/distributions/manual/php_manual_en.html.gz', '/tmp/php_manual_en.html.gz'); diff --git a/examples/progress_advanced.php b/examples/progress_advanced.php index 0359f88..7b47af7 100644 --- a/examples/progress_advanced.php +++ b/examples/progress_advanced.php @@ -11,7 +11,7 @@ $curl->progress(function ($client, $download_size, $downloaded, $upload_size, $u return; } - // Display a progress bar: xxx% [=======> ] + // Display a progress bar: xxx% [=======> ] $progress_size = 40; $fraction_downloaded = $downloaded / $download_size; $dots = round($fraction_downloaded * $progress_size); @@ -29,4 +29,4 @@ $curl->progress(function ($client, $download_size, $downloaded, $upload_size, $u $curl->complete(function ($instance) { echo "\n" . 'download complete' . "\n"; }); -$curl->download('https://secure.php.net/distributions/manual/php_manual_en.html.gz', '/tmp/php_manual_en.html.gz'); +$curl->download('https://www.php.net/distributions/manual/php_manual_en.html.gz', '/tmp/php_manual_en.html.gz');