简体   繁体   中英

Jmeter automatically add “/” in the path

I created, with jmeter, two requests. The first one gives me, a json containing an URL. I parse this json to grab the URL and transfer it to the second request.

My problem is that jmeter automatically add a slash to the path of the second request, I don't want/need it and it makes my application crash (The / is not present in the URL in the json).

I tries to set a defined variable empty_path with empty value and add the variable in the path but jmeter still add the slash at the end of the URL.

Do you have an idea to avoid this / ?

Thanks,

可能添加以%20之类的HTML代码编码的空字符

You should answer my question as I am not sure to fully ubderstand your issue.

Anyway, what you could try is :

I had to added a ? mark to the end of the url to make it work, you can try it.

If you have already has a ? mark, add a & mark instead.

Hope this can help you.

I had the same issue because I set full URL in the field Server Name or IP .

You should set there only web domain name and in field Path set rest of URI...

JMetter设置URL

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM