urlscan

Generate a HAR from a single request

urlscan

TODO: Write a description here

Installation

  1. Install Crystal
  2. git clone this repo
  3. cd into the repo
  4. shards build

Docker

You can also use the Docker image:

docker run -it --rm neuralegion/urlscan --url https://www.google.com --method GET

Usage

Simple example:

urlscan --url https://www.google.com --method GET

This will output the request and response body as HAR to the console. You can use a simple pipe to save it to a file:

urlscan --url https://www.google.com --method GET > google.har

Full usage:

Usage: urlscan [arguments]
    -u URL, --url=URL                Target URL
    -m METHOD, --method=METHOD       HTTP Method to use (GET/POST/etc..)
    -b BODY, --body=BODY             Body to send
    -H HEADER, --header=HEADER       Header to send (NAME:VALUE)
    -h, --help

Contributing

  1. Fork it (https://github.com/NeuraLegion/urlscan/fork)
  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 a new Pull Request

Contributors

Repository

urlscan

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 1
  • almost 2 years ago
  • March 2, 2023
License

MIT License

Links
Synced at

Sat, 21 Dec 2024 18:00:36 GMT

Languages