围攻中的POST键=值对

时间:2016-03-03 10:43:15

标签: benchmarking apachebench siege

首先,我没有在围攻中使用POST,

ggplot(df, aes(x, c, fill=d, group=b)) +
      geom_rect(aes(xmin=0.5,xmax=3.5,ymin=-Inf,ymax=Inf,colour=b),alpha=0.05,fill="#E41A1C",size=0) + 
      geom_rect(aes(xmin=3.5,xmax=6.5,ymin=-Inf,ymax=Inf,colour=b),alpha=0.05,fill="#377EB8",size=0) + 
      geom_bar(stat='identity', position=position_dodge()) + 
      coord_flip() +
      scale_x_continuous(breaks=df$x, labels=df$a)+
      guides(colour=guide_legend(override.aes=list(fill=c("#E41A1C","#377EB8"),alpha=0.3)))

这没有点击URL,但当我删除POST键时,它会使用GET点击URL

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

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

有人请帮助我在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

1 个答案:

答案 0 :(得分:0)

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

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

请注意引用,根据Jeffrey Fulmer(Siege的作者)required:“因为POST URL在POST之前和之后都包含空格,所以必须始终在命令行引用它们。”