curl2perl - convert curl arguments to Perl code
curl2perl [options] [url] [url] ...
Do not run the Perl code through HTML::Tidy
See curl(1) or https://curl.haxx.se/docs/manpage.html for the official documentation.
The following options are currently recognized:
User-Agent
Be verbose (ignored)
Be silent (ignored)
Enable gzip compression
Supply (POST) data
Set the Referer header
Referer
Submit form data
Issue a GET request
GET
Set the header
Include response in output (ignored)
Issue a HEAD request
HEAD
Set a timeout for the request
Don't send a keep-alive header (ignored)
Issue a custom request
Send an OAUTH2 bearer token
Save output to a filename
Set user and password for Basic authentication
To install HTTP::Request::FromCurl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Request::FromCurl
CPAN shell
perl -MCPAN -e shell install HTTP::Request::FromCurl
For more information on module installation, please visit the detailed CPAN module installation guide.