NAME
curl2lwp.pl - convert curl arguments to Perl code
SYNOPSIS
curl2lwp.pl [options] [url] [url] ...
OPTIONS
- no-tidy
-
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:
- agent|A=s
-
User-Agent
- verbose|v
-
Be verbose (ignored)
- silent|s
-
Be silent (ignored)
- compressed
-
Enable gzip compression
- data|d=s@
-
Supply (POST) data
- data-binary=s@
-
Supply (POST) data
- referrer|e=s
-
Set the
Referer
header - form|F=s@
-
Submit form data
- get|G
-
Issue a
GET
request - header|H=s@
-
Set the header
- include|i
-
Include response in output (ignored)
- head|I
-
Issue a
HEAD
request - max-time
-
Set a timeout for the request
- keepalive / no-keepalive
-
Don't send a keep-alive header (ignored)
- request|X=s
-
Issue a custom request
- oauth2-bearer=s
-
Send an OAUTH2 bearer token
- output|o=s
-
Save output to a filename
- user|u=s
-
Set user and password for Basic authentication