crabtrap
v0.2.3
Published
Recording and replaying HTTP proxy
Downloads
8
Readme
Crabtrap Proxy
Crabtrap is an http proxy that can capture and replay requests.
It was originally developed to help with testing web crawlers in the Crabfarm project.
Features:
- Records SSL requests (using a self signed certificate).
- When in replay mode, it uses smart url/content matching to serve the proper response.
- Allows serving assets in a local folder at the crabtrap.io mock domain.
Usage:
To record every passing requests, first start the proxy:
crabtrap capture ./somefile
then configure your browser's proxy to use localhost:4000
and navigate.
When you are done, terminate the proxy process with Ctrl-C or TERM signal
To start replay mode use:
crabtrap replay ./somefile
The proxy will use the capture file to respond recorded requests (other requests will produce a 404 response)
To get more help on usage use
crabtrap -h
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Credits
Thank you contributors!
Crabtrap is part of the Crabfarm Framework.
License
Crabtrap is © 2015 Platanus, SpA. It is free software and may be redistributed under the MIT License.