Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adjust advice about how to enable https support

  • Loading branch information...
commit 7fb9facb65f3f1d81f6b09cf461192d6a8343d4d 1 parent 31278a5
Gisle Aas authored

Showing 2 changed files with 9 additions and 13 deletions. Show diff stats Hide diff stats

  1. +1 2  README
  2. +8 11 lib/LWP/UserAgent.pm
3  README
@@ -36,8 +36,7 @@ libwww-perl:
36 36 WWW-RobotRules
37 37
38 38 If you want to access sites using the https protocol, then you need to
39   -install the IO::Socket::SSL module or the Crypt::SSLeay module. The
40   -README.SSL file will tell you more about how libwww-perl supports SSL.
  39 +install the LWP::Protocol::https module from CPAN.
41 40
42 41
43 42 INSTALLATION
19 lib/LWP/UserAgent.pm
@@ -177,12 +177,11 @@ sub send_request
177 177 $@ =~ s/ at .* line \d+.*//s; # remove file/line number
178 178 $response = _new_response($request, &HTTP::Status::RC_NOT_IMPLEMENTED, $@);
179 179 if ($scheme eq "https") {
180   - $response->message($response->message . " (IO::Socket::SSL not installed)");
  180 + $response->message($response->message . " (LWP::Protocol::https not installed)");
181 181 $response->content_type("text/plain");
182 182 $response->content(<<EOT);
183   -LWP will support https URLs if either IO::Socket::SSL or Crypt::SSLeay
184   -is installed. More information at
185   -<http://search.cpan.org/dist/libwww-perl/README.SSL>.
  183 +LWP will support https URLs if the LWP::Protocol::https module
  184 +is installed.
186 185 EOT
187 186 }
188 187 }
@@ -1355,10 +1354,10 @@ The options that LWP relates to are:
1355 1354 When TRUE LWP will for secure protocol schemes ensure it connects to servers
1356 1355 that have a valid certificate matching the expected hostname. If FALSE no
1357 1356 checks are made and you can't be sure that you communicate with the expected peer.
1358   -The no checks behaviour was the default for libwww-perl-5.837 and older.
  1357 +The no checks behaviour was the default for libwww-perl-5.837 and earlier releases.
1359 1358
1360 1359 This option is initialized from the L<PERL_LWP_SSL_VERIFY_HOSTNAME> environment
1361   -variable. If the this envirionment variable isn't set; then C<verify_hostname>
  1360 +variable. If this envirionment variable isn't set; then C<verify_hostname>
1362 1361 defaults to 1.
1363 1362
1364 1363 =item C<SSL_ca_file> => $path
@@ -1379,11 +1378,9 @@ variables C<PERL_LWP_SSL_CA_PATH> and C<HTTPS_CA_DIR> in order.
1379 1378 Other options can be set and are processed directly by the SSL Socket implementation
1380 1379 in use. See L<IO::Socket::SSL> or L<Net::SSL> for details.
1381 1380
1382   -If hostname verification is requested, and neither C<SSL_ca_file> nor
1383   -C<SSL_ca_path> is set, then C<SSL_ca_file> is implied to be the one
1384   -provided by L<Mozilla::CA>. If the Mozilla::CA module isn't available
1385   -SSL requests will fail. Either install this module, set up an alternative
1386   -SSL_ca_file or disable hostname verification.
  1381 +The libwww-perl core no longer bundles protocol plugins for SSL. You will need
  1382 +to install L<LWP::Protocol::https> separately to enable support for processing
  1383 +https-URLs.
1387 1384
1388 1385 =back
1389 1386

0 comments on commit 7fb9fac

Please sign in to comment.
Something went wrong with that request. Please try again.