App-LWPUtils
view release on metacpan or search on metacpan
script/lwputil-request view on Meta::CPAN
Pass attributes to LWP::UserAgent constructor (JSON-encoded).
See C<--attributes>.
=item B<--attributes>=I<s>
Pass attributes to LWP::UserAgent constructor.
=item B<--content>=I<s>
=item B<--delete>
Shortcut for --method DELETE.
See C<--method>.
=item B<--get>
Shortcut for --method GET.
See C<--method>.
=item B<--head>
Shortcut for --method HEAD.
See C<--method>.
=item B<--header>=I<s>%
Each value is a name-value pair, use I<key=value> syntax. Can be specified multiple times.
=item B<--headers-json>=I<s>
See C<--header>.
=item B<--ignore-errors>, B<-i>
Ignore errors.
Normally, when given multiple URLs, the utility will exit after the first
non-success response. With `ignore_errors` set to true, will just log the error
and continue. Will return with the last error response.
=item B<--method>=I<s>
Default value:
"GET"
=item B<--post>
Shortcut for --method POST.
See C<--method>.
=item B<--put>
Shortcut for --method PUT.
See C<--method>.
=item B<--raw>
=item B<--url>=I<s@>*
Can be specified multiple times.
=item B<--urls-json>=I<s>
See C<--url>.
=back
=head2 Logging options
=over
=item B<--debug>
Shortcut for --log-level=debug.
=item B<--log-level>=I<s>
Set log level.
=item B<--quiet>
Shortcut for --log-level=error.
=item B<--trace>
Shortcut for --log-level=trace.
=item B<--verbose>
Shortcut for --log-level=info.
=back
=head2 Output options
=over
=item B<--format>=I<s>
Choose output format, e.g. json, text.
Default value:
undef
=item B<--json>
Set output format to json.
=item B<--naked-res>
When outputing as JSON, strip result envelope.
( run in 0.617 second using v1.01-cache-2.11-cpan-ceb78f64989 )