Encounter Host of origin may is not blank when using JMeter

Source: Internet
Author: User
    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:


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.