in reply to Re^2: Runs from Command Line but NOT from Perl
in thread Runs from Command Line but NOT from Perl

There now is HTTP::Request::FromCurl (curl2lwp - convert Curl command line arguments to LWP / Mechanize Perl code), which includes curl2lwp.pl, that converts curl command lines to Perl code.

There also is an online Curl to Perl converter running that module as its backend.