Paste your fetch() command here

Switch to Curl input - Headers to Curl

Resulting Perl code

Copy to clipboard
#!perl use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new( 'send_te' => '0' ); my $r = HTTP::Request->new( 'GET' => 'https://example.com', [ ], ); my $res = $ua->request( $r, ); __END__ Created from fetch() command fetch("https://example.com", { "method":"GET" })

Powered by