Coder Social home page Coder Social logo

hmacurl's Introduction

hmacurl

hmacurl is a curl inspired command line utility that implements aws4 hmac signing for requests

build

git clone https://github.com/udryan10/hmacurl.git

go build

run

$ ./hmacurl -h
Usage:
  hmacurl [OPTIONS] url

Application Options:
  -X, --request=GET|POST                           the http method to use (GET)
  -d, --data='my string body'                      for POST requests, the data to be uploaded as the body. Used if -f is not provided.
  -f, --file=./file.txt                            for POST requests, the file to be uploaded as the body. Used if -d is not provided
  -H, --header='Content-Type: application/json'    Extra header(s) to include in the request when sending HTTP to a server. You may specify any number of extra headers.
      --curl-only                                  If specified, will only print out a curl command - not actually run a request (false)
  -a, --access-key=                                The access Key to use in HMAC signing. Can also be specified as an environment variable(export HMACURL_ACCESS_KEY='fasdf')
  -s, --secret-key=                                The secret Key to use in HMAC signing. Can also be specified as an environment variable(export HMACURL_SECRET_KEY='fasdf')
      --debug                                      Whether to output debug information (false)

Help Options:
  -h, --help                                       Show this help message

Arguments:
  url

example

./hmacurl -XPOST -H'Content-Type: text/html' -H'foo:bar' -a accessKey -s secret -d'{}' http://example.com

hmacurl's People

Contributors

udryan10 avatar

Watchers

Allan Clark avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.