0

首先,我没有让 POST 在围攻中工作,

siege https://apicdntest.fadv.com/orders/kelly POST

这不会击中 URL,但是当我删除 POST 键时,它会使用 GET 击中 URL

我真正需要的是我想用键/值对点击 URL,就像下面一样

siege https://apicdntest.fadv.com/orders/kelly post MyXML='<root><test>test</test></root>'

有人请帮我这样做siege吗?

获取结果如下

Transactions:                      4 hits
Availability:                 100.00 %
Elapsed time:                   2.52 secs
Data transferred:               0.00 MB
Response time:                  0.26 secs
Transaction rate:               1.59 trans/sec
Throughput:                     0.00 MB/sec
Concurrency:                    0.41
Successful transactions:           0
Failed transactions:               0
Longest transaction:            0.26
Shortest transaction:           0.00

发布结果

Transactions:                      0 hits
Availability:                   0.00 %
Elapsed time:                  16.20 secs
Data transferred:               0.00 MB
Response time:                  0.00 secs
Transaction rate:               0.00 trans/sec
Throughput:                     0.00 MB/sec
Concurrency:                    0.00
Successful transactions:           0
Failed transactions:             4
Longest transaction:            0.00
Shortest transaction:           0.00
4

1 回答 1

0

尝试像这样重新格式化您的请求:

siege "https://apicdntest.fadv.com/orders/kelly POST"

请注意引号,根据 Jeffrey Fulmer(Siege 的作者)的说法,引号是必需的:“因为 POST url 在 POST 之前和之后包含空格,所以您必须始终在命令行中引用它们。”

于 2016-09-06T19:59:09.190 回答