when you use Badboy to record JMeter scripts, you encounter the following error when using JMeter:
Java.lang.IllegalArgumentException:Host of origin may isn't blank at Org.apache.commons.httpclient.cookie.CookieSpecBase.match (cookiespecbase.java:461) at Org.apache.commons.httpclient.cookie.CookieSpecBase.match (cookiespecbase.java:557) at ORG.APACHE.JMETER.PROTOCOL.HTTP.CONTROL.HC3COOKIEHANDLER.GETCOOKIESFORURL (hc3cookiehandler.java:102) at Org.apache.jmeter.protocol.http.control.HC3CookieHandler.getCookieHeaderForURL (hc3cookiehandler.java:118) at Org.apache.jmeter.protocol.http.control.CookieManager.getCookieHeaderForURL (cookiemanager.java:350) at Org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.setConnectionCookie (httpjavaimpl.java:336) at Org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.setupConnection (httpjavaimpl.java:194) at Org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample (httpjavaimpl.java:480) at Org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample (httpsamplerproxy.java:74) at Org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.saMple (httpsamplerbase.java:1146) at Org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample ( httpsamplerbase.java:1135) at Org.apache.jmeter.threads.JMeterThread.process_sampler (jmeterthread.java:434) at Org.apache.jmeter.threads.JMeterThread.run (jmeterthread.java:261) at Java.lang.Thread.run (Unknown Source)
Search on the internet for a long time did not search the solution, including a lot of foreign language sites have not. Inadvertently looked at this error message (host of Origin), suddenly came up with a possible place of error:
The request was sent to a page and a new request was made, and then there was no server name and port number in the Badboy recorded script.
After changing it to a normal request, the problem is resolved.
2) Chinese request garbled
The request encoding format needs to be set, as shown below: