Skip to content

Instantly share code, notes, and snippets.

@avirajkhare00
Forked from MikeNGarrett/siege
Created October 23, 2023 22:06
Show Gist options
  • Save avirajkhare00/4d1a1ce8d34f23aa96fae753480de0c1 to your computer and use it in GitHub Desktop.
Save avirajkhare00/4d1a1ce8d34f23aa96fae753480de0c1 to your computer and use it in GitHub Desktop.
Siege with JSON POST data
# Changed to use content-type flag instead of header: -H 'Content-Type: application/json'
siege -c50 -t60S --content-type "application/json" 'http://domain.com/path/to/json.php POST {"ids": ["1","2","3"]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment