TITLE

capture - Capture HTTP::Response objects to feed to a mock LWP::UserAgent.

SYNOPSIS

capture
capture --help
capture --version

OPTIONS

The following options are supported directly by this script. Any unrecognized options will be passed through to Astro::SpaceTrack.

--directory

This option specifies the directory in which the responses are to be written. The default is the default for Mock::LWP::UserAgent.

--help

This option displays the documentation for this script. The script then exits.

--list

If this Boolean option is asserted, the captured objects are listed. The script then exits. The list includes captured data if --verbose is also asserted.

--retrieval-size

This option specifies the maximum number of OIDs to retrieve in a single query. The default is 200.

--verbose

If this option is asserted, file creation will be logged to standard error.

--version

This option displays the version of this script. The script then exits.

DETAILS

This Perl script is unsupported and may be modified or retracted without notice at any time. The documentation is simply for the benefit of the author.

This Perl script is essentially a wrapper for the Astro::SpaceTrack shell() method. But it uses a subclass of Astro::SpaceTrack to dump HTTP responses to JSON files whose name is an MD5 digest of the URL that generated the response. The files are censored heavily by this subclass.

In addition, the following commands/methods are added:

GET

This method simply gets the specified URL.

site_check

This method performs an accessability check on the named site.

AUTHOR

Thomas R. Wyant, III wyant at cpan dot org

COPYRIGHT AND LICENSE

Copyright (C) 2014-2026 by Thomas R. Wyant, III

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the files LICENSE-Artistic and LICENSE-GPL.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.