Siege: POST
Revision as of 15:35, 7 December 2018 by Onnowpurbo (talk | contribs) (Created page with "POST plain text data - plain-text-content-here siege --concurrent=50 --content-type="text/plain" 'http://example.com/api POST plain-text-content-here' API accepts JSON inst...")
POST plain text data - plain-text-content-here
siege --concurrent=50 --content-type="text/plain" 'http://example.com/api POST plain-text-content-here'
API accepts JSON instead of plain text, gunakan
siege --concurrent=50 --content-type="application/json" 'http://example.com/api POST {"key1":"value1","key2":"value2"}'
POST JSON data dari file
siege --concurrent=50 --content-type="application/json" 'http://example.com/api POST < /path/to/json-file.txt'
perintah --time akan men-spesify time untuk waktu menjalankan perintah