我在Jmeter中的一些https请求任意切换到普通的http,但保持端口在443上

时间:2022-11-08 12:14:10

The request samplers are set up to use https and port 443. But sometimes JMeter sends a http request but keeps the port on 443, like http://example.com:443/?param=example

请求采样器设置为使用https和端口443.但有时JMeter发送http请求但将端口保持在443,如http://example.com:443/?param=example

It should be https://example.com/?param=example on port 443

它应该是端口443上的https://example.com/?param=example

It works like 75% of the time. What would cause Jmeter to decide to go for http only on some threads?

它的工作量占75%。什么会导致Jmeter决定只在某些线程上使用http?

1 个解决方案

#1


I solved it by removing a HTTP Request Defaults config element. That config must have confused the rest of the script.

我通过删除HTTP Request Defaults配置元素解决了这个问题。该配置必须混淆脚本的其余部分。

I also got the same tips from Blazemeter on Twitter, after I had solved it.

在我解决之后,我也在Twitter上获得了Blazemeter的相同提示。

#1


I solved it by removing a HTTP Request Defaults config element. That config must have confused the rest of the script.

我通过删除HTTP Request Defaults配置元素解决了这个问题。该配置必须混淆脚本的其余部分。

I also got the same tips from Blazemeter on Twitter, after I had solved it.

在我解决之后,我也在Twitter上获得了Blazemeter的相同提示。