#!/usr/local/bin/perl # make sure you have installed: # LWP::UserAgent # LWP::Protocol::https # # taken from: # https://corion.net/curl2lwp.psgi # use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new( 'send_te' => '0' ); my $r = HTTP::Request->new( 'GET' => 'https://example.com', [ 'Accept' => '*/*', 'User-Agent' => 'curl/7.55.1', 'Cookie' => '90ip...pt71' ], ); my $res = $ua->request( $r ); print $res->decoded_content, "\n";