Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jmeter -Illegal character found in host: '/'

Tags:

jmeter

Thread Name:Thread Group 1-1 Sample Start:1970-01-01 05:30:00 IST Load time:0 Connect Time:0 Latency:0 Size in bytes:839 Sent bytes:0 Headers size in bytes:0 Body size in bytes:839 Sample Count:1 Error Count:1 Data type ("text"|"bin"|""):text Response code:Non HTTP response code: java.net.MalformedURLException Response message:Non HTTP response message: Illegal character found in host: '/'

HTTPSampleResult fields: ContentType: DataEncoding: null

like image 999
sathya Avatar asked Jan 25 '26 04:01

sathya


1 Answers

You cannot have / character neither in IP address nor in the DNS hostname

You need to split:

  1. Protocol: http, https or file
  2. Server name or ip
  3. Path

into different fields like:

enter image description here

or in exceptional case you can put the whole URL into the "Path" field of the HTTP Request sampler:

enter image description here


In general it should be much faster and easier to get the "skeleton" of the test project by just recording the test using JMeter's HTTP(S) Test Script Recorder or JMeter Chrome Extension, it will generate "proper" HTTP Request samplers from the browser.

like image 184
Dmitri T Avatar answered Jan 28 '26 23:01

Dmitri T