【问题标题】:How to pass 'method parameter' with HEAD request?如何通过 HEAD 请求传递“方法参数”?
【发布时间】:2013-07-05 13:07:22
【问题描述】:

我有一个包含一些参数的 HEAD restAPI。

例子:

HEAD http://server:port/myservice/rest/v0.1/myStore?storeid='123'
  • 我在 Http 请求的路径中添加了/myservice/rest/v0.1/myStore
  • 将方法更改为HEAD
  • Send Parameters With the request 部分中添加了参数storeid=123

当我执行 JMeter 脚本时,它不会发送带路径的参数。 它显示请求为http://server:port/myservice/rest/v0.1/myStore 而不是 http://server:port/myservice/rest/v0.1/myStore?storeid='123'.

注意:如果我将方法更改为 GET,那么它工作正常。
但我的要求是 HEAD 请求。

【问题讨论】:

    标签: jmeter jmeter-plugins


    【解决方案1】:

    在Path字段中输入参数为:

    ?storeid='123'

    【讨论】:

    • 暂时没有,但如果您知道一个真实案例,请打开一个显示它的增强请求,实现它应该很简单。
    猜你喜欢
    • 2016-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多