JMeter - Trouble sending HTTP request with POST variable?

不羁的心 提交于 2019-12-01 16:46:18

Remove http:// from Server Name / IP field of your HTTP Request Sampler (that's pointed in HTTP Request fields description).

Look onto your generated POST request above in description:

POST Request
POST http://[http://sophos1.testserver.co.uk/servlet/archive]:61061/

Configure your HTTP Request as the following instead:

Server Name: sophos1.testserver.co.uk
Path: /servlet/archive
Implementation: Java

The easy way is that you could leave the server name blank and set the path to

http://sophos1.testserver.co.uk/servlet/archive

Gowtami

Check if there are any spaces in ServerName or IP field.

This gave me this error :

Response message: Non HTTP response message: Illegal character in authority at index 7:

When extra spaces were trimmed in the beginning, it worked well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!