ab: add POST request example (#3805)
* Update ab.md Sending POST requests * Update pages/common/ab.md Co-Authored-By: Marco Bonelli <mebeim@users.noreply.github.com> Co-authored-by: Marco Bonelli <mebeim@users.noreply.github.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
> Apache Benchmarking tool. The simplest tool to perform a load testing.
|
> Apache Benchmarking tool. The simplest tool to perform a load testing.
|
||||||
> More information: <https://httpd.apache.org/docs/2.4/programs/ab.html>.
|
> More information: <https://httpd.apache.org/docs/2.4/programs/ab.html>.
|
||||||
|
|
||||||
- Execute 100 HTTP GET requests to given URL:
|
- Execute 100 HTTP GET requests to a given URL:
|
||||||
|
|
||||||
`ab -n {{100}} {{url}}`
|
`ab -n {{100}} {{url}}`
|
||||||
|
|
||||||
@@ -18,3 +18,7 @@
|
|||||||
- Set the maximum number of seconds to spend for benchmarking:
|
- Set the maximum number of seconds to spend for benchmarking:
|
||||||
|
|
||||||
`ab -t {{60}} {{url}}`
|
`ab -t {{60}} {{url}}`
|
||||||
|
|
||||||
|
- Execute 100 HTTP POST requests to a given URL, using a JSON payload from a file:
|
||||||
|
|
||||||
|
`ab -n {{100}} -T {{application/json}} -p {{data.json}} {{url}}`
|
||||||
|
Reference in New Issue
Block a user