use strict; use warnings; use feature 'say'; use Path::Tiny; use HTTP::Tiny; use HTTP::CookieJar; my $jar_file = Path::Tiny->tempfile; $jar_file->touch; my $jar = HTTP::CookieJar->new->load_cookies( $jar_file->lines ); my $ua = HTTP::Tiny->new( cookie_jar => $jar ); my $url = 'https://camelcamelcamel.com'; my $res = $ua->get( $url ); say $res->{'status'}; say $res->{'content'}; __END__ #### 405 [ snip ]

As you were browsing camelcamelcamel.com something about your browser made us think you were a bot. There are a few reasons this might happen:

After completing the CAPTCHA below, you will immediately regain access to camelcamelcamel.com.

[ snip ]