W
W
WebDev2019-11-22 11:56:49
stress testing
WebDev, 2019-11-22 11:56:49

POST request in apache ab?

Tell me, is it possible to somehow issue POST requests using ab, passing parameters directly in the command? Googled only options where the data is added to a file and the file is specified as a parameter.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2019-11-22
@kirill-93

ab -m POST -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 1000 http://example.com/api/foo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question