~ubuntu-branches/ubuntu/oneiric/libwww-perl/oneiric

« back to all changes in this revision

Viewing changes to t/live/https.t

  • Committer: Bazaar Package Importer
  • Author(s): Nicholas Bamber, Nicholas Bamber, gregor herrmann
  • Date: 2011-05-23 01:05:49 UTC
  • mfrom: (1.4.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110523010549-ls2p0gfpvzv479ru
Tags: 6.02-1
[ Nicholas Bamber ]
* New upstream release
  - Split off LWP::Protocol::https
  - Removes need for patch
  - Removes deprecated modules such as http10
* Added Recommends clause for libauthen-ntlm-perl
* Updated version in Breaks clause for tidy-proxy
* Updated version in Breaks clause for gsutil
* Raised standards version to 3.9.2
* Adding debian/clean

[ gregor herrmann ]
* debian/rules: unset PERL_LWP_SSL_VERIFY_HOSTNAME to make tests pass.
* Removed libio-socket-ssl-perl, libcrypt-ssleay-perl from Suggests clause

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!perl -w
2
 
 
3
 
use strict;
4
 
use Test;
5
 
 
6
 
use LWP::UserAgent;
7
 
 
8
 
my $ua = LWP::UserAgent->new();
9
 
my $res = $ua->simple_request(HTTP::Request->new(GET => "https://www.apache.org"));
10
 
 
11
 
if ($res->code == 501 && $res->message =~ /Protocol scheme 'https' is not supported/) {
12
 
    print "1..0 # Skipped: " . $res->message . "\n";
13
 
    exit;
14
 
}
15
 
 
16
 
plan tests => 2;
17
 
ok($res->is_success);
18
 
ok($res->content =~ /Apache Software Foundation/);
19
 
 
20
 
$res->dump(prefix => "# ");