Get RequestBody content

90 views
Skip to first unread message

Adharsh V S

unread,
May 12, 2021, 4:26:01 AM5/12/21
to Gatling User Group
Hi,

I'm using a SignatureCalculator function to create Authorization headers, but I'm having trouble getting the content of the RequestBody for that.

request.getBody.toString returns something like this:

StringChunksRequestBody{contentType='application/json', charset=UTF-8, content={
  "field":"value"
}}

There is no request.getBody.getContent function, only request.getBody.getContentType.
Is there an easy way to extract the content only?

Any help would be deeply appreciated.

Thanks,
 Adharsh

Stéphane LANDELLE

unread,
May 12, 2021, 12:47:49 PM5/12/21
to gat...@googlegroups.com
request.getBody.getBytes

Logo Stéphane Landelle
Chief Technical Officer
twitter: @slandelle
site:
gatling.io




--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/836092af-de93-4a69-b367-cfe1979235c2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages