crabtrap

0.2.3 • Public • Published

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.

crabtrap

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credits

Thank you contributors!

Crabfarm

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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i crabtrap

    Weekly Downloads

    2

    Version

    0.2.3

    License

    MIT

    Last publish

    Collaborators

    • iobaixas