From 9880ffbadc34f962abf4e63bef9a6cce8a8cdf10 Mon Sep 17 00:00:00 2001 From: Slaven Rezic Date: Sun, 22 Feb 2026 15:44:19 +0100 Subject: [PATCH] switch from example.com to httpbin.org because of SSL certificate issues This solves GH #80. --- t/example.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/example.t b/t/example.t index 16eae414..09c16585 100644 --- a/t/example.t +++ b/t/example.t @@ -2,7 +2,7 @@ use strict; use Test::More; -use Test::RequiresInternet 'www.example.com' => 443; +use Test::RequiresInternet 'httpbin.org' => 443; use LWP::UserAgent (); @@ -10,7 +10,7 @@ my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 0 } ); plan tests => 2; -my $url = 'https://www.example.com'; +my $url = 'https://httpbin.org'; subtest "Request GET $url" => sub { plan tests => 6; @@ -43,7 +43,7 @@ subtest "Request GET $url" => sub { my $ssl_cipher = $res->header($h) || ''; ok($ssl_cipher =~ /\S/, "have header $h"); - like($res->content, qr/Example Domain/, "found expected document content"); + like($res->content, qr/\Qhttpbin.org/, "found expected document content"); }; subtest "Check for warnings from GET $url (RT #81948)" => sub {