简体   繁体   English

JMeter:HTTP请求的变量

[英]JMeter: Variable to HTTP request

In JMeter, I have a variable which contains HTTP request as it is (the method, URL, headers and payload). 在JMeter中,我有一个包含HTTP请求的变量(方法,URL,标头和有效负载)。 How can I send this HTTP request in JMeter? 如何在JMeter中发送此HTTP请求?

If you have a single variable which represents full HTTP request contents in a textual form the easiest solution would be going for HTTP Raw Request sampler. 如果您有一个变量以文本形式表示完整的HTTP请求内容,则最简单的解决方案是使用HTTP Raw Request采样器。

Just put your variable into "Request Data" section and that would be it 只需将变量放入“请求数据”部分,就可以了

JMeter HTTP原始请求

You can install HTTP Raw Request sampler using JMeter Plugins Manager 您可以使用JMeter插件管理器安装HTTP Raw Request采样

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM