This is a common problem for sites which use the bot manager offered by Akamai CDN to protect against being crawled by bots:
$ dig www.target.com.au
...
www.target.com.au.      6886    IN      CNAME   shop.target.com.au.edgekey.net.
shop.target.com.au.edgekey.net. 6886 IN CNAME   e1380.x.akamaiedge.net.
The bot manager detects bots depending on specific traits. Currently the seems to be that Accept-Encoding and Accept-Language are set, that the User-Agent is something like Mozilla/5.0 and that Connection is Keep-Alive. If these conditions are not met the client is treated as a bot, which might result in hanging or error messages. The Connection header is automatically set by LWP to the expected value but the others need to be set explicitly:
use warnings;
use strict;
use LWP::UserAgent;

my $ua = LWP::UserAgent->new();
my $res = $ua->get('https://www.target.com.au/',
    'Accept-Language' => 'en-US',
    'User-Agent' => 'Mozilla/5.0',
    'Accept-Encoding' => 'identity',
);
print $res->content;
See also Golang Http Get Request very slow, Strange CURL issue with a particular website SSL certificate, Scraping attempts getting 403 error or Requests SSL connection timeout over at stackoverflow.com for similar problems.

In reply to Re: LWP::Useragent doesn't work on certain HTTPS websites? by noxxi
in thread LWP::Useragent doesn't work on certain HTTPS websites? by sectokia

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.