Skip to content

Golang app to perform concurrent post/put json requests

Notifications You must be signed in to change notification settings

titolins/ghostress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghostress

Description

Simple golang application to perform multiple concurrent POST/PUT HTTP requests sending a json file as payload.

Usage

The following flags are defined:

  • n_req -> number of requests to be made to server (defaults to 1)
  • timeout -> the timeout (in seconds) between requests (defaults to 0)
  • method -> method used to send the payload - PUT or POST (defaults to PUT)
  • uri -> request address (defaults to http://localhost:3000/)
  • data -> path to data file to be sent as payload (defaults to test_data.json)

Running ./ghostress [-h|--help] also works

Example:

$ # presuming you have a json payload file named `test_data.json` in the same
$ # folder, this will send a single PUT request to the uri defined
$ ./ghostress -uri=http://11.22.33.44:80/test/api

Author: Tito Lins

About

Golang app to perform concurrent post/put json requests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published