3

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

例子:

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

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

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

4

1 回答 1

4

将参数放在路径字段中:

?storeid='123'

于 2013-07-13T15:38:00.437 回答