this perl code
------------------------------------------
use LWP::Simple qw($ua get);
$ua->timeout(5);
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
$contents = get("https://www.butler.edu/boa/default.aspx";);
------------------------------------------

just tried fresh perl installs.

strawberry perl 5.16.3.1:  doesnt hang.

strawberry perl 5.18.0.1:  doesnt hang.

strawberry perl 5.18.1.1:  doesnt hang.

strawberry perl 5.18.2.1:  hangs.

strawberry perl 5.18.2.2:  hangs.

/Jesper


On 21 May 2014 14:12, Daniel de Oliveira Mantovani <
daniel.oliveira.mantov...@gmail.com> wrote:

> Hi, Jesper. It's happen because it should happen. You don't have the
> error because you are not handle error.
>
> This happen because LWP has a timeout to wait the server response,
> after this timeout it will return a timeout error. In your case, you
> don't handle the error the only stuff you get is nothing.
>
> This URL "https://www.butler.edu/boa/default.aspx"; has two problems:
>
> 1 - The certificate authority is not trusted
> 2 - Never (i.e until timeout) response to the client
>
> If you are inside an intranet and you can access this site from your
> browser and you know ins't cache. Start handle with error, and show it
> to us.
>
> To avoid "certificate authority not trusted" you can use:
>
> BEGIN {
>     $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
> }
>
>
> Lab:~ danielmantovani$ wget "https://www.butler.edu/boa/default.aspx";
> --2014-05-21 09:04:08--  https://www.butler.edu/boa/default.aspx
> Resolving www.butler.edu (www.butler.edu)... 159.242.130.240
> Connecting to www.butler.edu (www.butler.edu)|159.242.130.240|:443...
> connected.
> ERROR: The certificate of ‘www.butler.edu’ is not trusted.
> ERROR: The certificate of ‘www.butler.edu’ hasn't got a known issuer.
>
> Lab:~ danielmantovani$ wget "https://www.butler.edu/boa/default.aspx";
> --no-check-certificate
> --2014-05-21 09:04:39--  https://www.butler.edu/boa/default.aspx
> Resolving www.butler.edu (www.butler.edu)... 159.242.130.240
> Connecting to www.butler.edu (www.butler.edu)|159.242.130.240|:443...
> connected.
> WARNING: The certificate of ‘www.butler.edu’ is not trusted.
> WARNING: The certificate of ‘www.butler.edu’ hasn't got a known issuer.
> HTTP request sent, awaiting response... Read error (Success.) in headers.
> Retrying.
>
> On 21 May 2014 05:37, Jesper Persson <jesper.j.pers...@gmail.com> wrote:
> > ---------------------
> > use LWP::Simple;
> > $contents = get("https://www.butler.edu/boa/default.aspx";);
> > ---------------------
> > the perl process never returns.
> >
> > lwp version: "VERSION: 6.06"
> >
> > Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
> >   Platform:
> >     osname=MSWin32, osvers=6.2, archname=MSWin32-x64-multi-thread
> >     uname='Win32 strawberry-perl 5.18.2.1 #1 Tue Jan  7 22:32:35 2014
> x64'
> >
> > Best Regards
> > Jesper Persson
>
>
>
> --
>
> -dom
>
> --
>
> Daniel de Oliveira Mantovani
> Business Analytic Specialist
> Perl Evangelist /Astrophysics hobbyist.
> +55 11 9 8538-9897
> XOXO
>

Reply via email to