Request being encoded - How to not encode

I have this request:

.exec(http(“request_search”)
.post(“https://xxx/_search”)
.formParam(“subject:Patient.identifier”, “${unike_fnr}”)
.formParam(“_include”, “*”)

But the : is translated to %3A as in:

body:FormUrlEncodedRequestBody{contentType=‘application/x-www-form-urlencoded’, charset=UTF-8, content=subject%3APatient.identifier=08069405038&_include=*}

I need to send the formParam as plain text (subject:Patient.identifier).

How can I skip gatling from adding %3A ?

Hi,

You’re violating the x-www-form-urlencoded specification:

Non-alphanumeric characters in both keys and values are percent encoded

You REALLY should not do that. If you have an application that works this way, it’s broken and this issue should be reported to the developers so they fix it.

Regards

2 Likes

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