Url values getting encoded from feeder

Gatling version: 3.11.5 (must be up to date)
Gatling flavor: java kotlin scala javascript typescript
Gatling build tool: maven gradle sbt bundle npm

I read the [guidelines] and [how to ask a question] topics.
I provided a [SSCCE] (or at least, all information to help the community understand my topic)
I copied output I observe, and explain what I think should be.

I have a URL which has dynamic values like "url/{param1}/{param2}/{param3}/search " where the param values are coming from a csv file.
But when passed via feeder and logged the request, the URL generated is not string but getting encoded values whereas it should have been simple strings.

Java code:

HttpProtocolBuilder httpProtocol = http
            .baseUrl("https://xyz.com")
            .contentTypeHeader("application/json")
            .acceptHeader("application/json")
            .authorizationHeader("Bearer eyJhbGciOiJ");
ScenarioBuilder scn = scenario("My Scenario")
            .feed(feeder)
            .exec(logParams())
            .exec(
                    http("Request with dynamic params")
                            .post("/${param1}/${param2}/${param3}/search")
                            .body(StringBody("{\"query\":\"hello\"}")).asJson()
            );

    {
        setUp(
                scn.injectOpen(atOnceUsers(1))
        ).protocols(httpProtocol);
    }

CSV FILE:

product,account_id,document_type,search_type
productA,99,question,normal

Request URL when logged under Debug

url/$%7Bparam1%7D/$%7Bparam2%7D/$%7Bparam3%7D/search

Need help as I do not want to encode value in URL but send as normal strings. Tried with disableUrlEncoding() under scenarioBuilder but that didn’t help as well

Hello,

You need to change the $ with #

Damn, Thanks for quick reply.
I was taking help of ChatGPT and it gave syntax with $ and I was stuck into debugging.

No problem, thank you for using Gatling

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.