cryptocli icon indicating copy to clipboard operation
cryptocli copied to clipboard

Examine raw http with json

Open tehmoon opened this issue 5 years ago • 1 comments

It would be awesome to add some flag to http and http-server to dump/create the request in json format. Something like this:

{ "url": "www.google.com/?q=blah",
  "headers": {
    "host": [{"value": "www.google.com"}]
  },
  "method": "POST"
}

Then for the payload:

{"payload": <base64>}

It will be use for new connections but also to create new ones. Super useful for http proxies.

tehmoon avatar Jul 08 '19 16:07 tehmoon

Initial work in PR https://github.com/tehmoon/cryptocli/pull/19

tehmoon avatar Jul 09 '19 01:07 tehmoon