Search code examples
jmeterhttprequestjmeter-4.0jmeter-3.2jmeter-5.0

Set the whole request url in jmeter


I have a request, which gives upload url as response body.

{
    "uploadUrl": "https://test.com:9000/sample_uploadurl"
}

I'm able to extract the uploadUrl using JSON extractor. JSON extractor

I want to use above upload url to in next http request. How to set the new request here ?

enter image description here

adding directly doent work, because JMeter prepends http/https before request, in this case we already have https.

It got failed because it has https://[https://test.com:9000/sample_uploadurl]


Solution

  • Leave HTTP Request fields empty except Path, put there the variable and it will be executed

    As a special case, if the path starts with "http://" or "https://" then this is used as the full URL.

    example example