2016-08-25 02:27:17 +00:00
|
|
|
---
|
|
|
|
title: Siege
|
|
|
|
category: Others
|
2020-07-03 12:47:47 +00:00
|
|
|
intro: |
|
|
|
|
[Siege](https://www.joedog.org/siege-home/) is an HTTP and HTTPS load testing tool.
|
2016-08-25 02:27:17 +00:00
|
|
|
---
|
|
|
|
|
2020-07-03 12:47:47 +00:00
|
|
|
### Basic usage
|
|
|
|
|
|
|
|
```sh
|
|
|
|
siege -b -c=10 -t=5m "http://..."
|
2016-08-25 02:27:17 +00:00
|
|
|
```
|
2020-07-03 12:47:47 +00:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
#### Repetitions
|
2016-08-25 02:27:17 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
-c, --concurrent=N
|
|
|
|
-t, --time=MINSm
|
|
|
|
-r, --reps=N
|
|
|
|
```
|
|
|
|
|
2020-07-03 12:47:47 +00:00
|
|
|
#### Modes
|
|
|
|
|
2016-08-25 02:27:17 +00:00
|
|
|
```
|
|
|
|
-i, --internet Hit URLs randomly
|
|
|
|
-b, --benchmark No delay between requests
|
|
|
|
```
|
|
|
|
|
2020-07-03 12:47:47 +00:00
|
|
|
#### Configuration
|
2016-08-25 02:27:17 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
-f, --file=FILE load urls.txt
|
|
|
|
-R, --rc=FILE load siegerc
|
|
|
|
```
|
|
|
|
|
2020-07-03 12:47:47 +00:00
|
|
|
#### Headers
|
2016-08-25 02:27:17 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
-H, --header="Cookie: foo=bar"
|
|
|
|
-A, --user-agent="Mozilla"
|
|
|
|
-T, --content-type="text/html"
|
|
|
|
```
|
2020-07-03 12:47:47 +00:00
|
|
|
|
|
|
|
### References
|
|
|
|
|
|
|
|
Also see: [siegerc](https://gist.github.com/stansmet/3067988)
|