Siege: POST

From OnnoWiki
Jump to navigation Jump to search

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


Pranala Menarik