Save Request Body from 'REST Client' action

Discuss RoboTask here
Post Reply
sarnusch
Posts: 61
Joined: Thu Apr 28, 2022 9:05 am

Save Request Body from 'REST Client' action

Post by sarnusch »

Hello,
for debugging purposes I would like to see the real request body from a 'REST Client' action.
Is it possible to save the complete request to a variable or a file?

UPDATE - 16.01.2025
I am having trouble sending characters like ä, ö, ü, ... in name fields.
The target server then creates an error code 500, 'Internal Server Error'.
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Save Request Body from 'REST Client' action

Post by Oleg »

REST Client/Invoke Web Service action sends the request body as it is. It does not make any transformations.
Do you want to simulate web form data or are you sending JSON data?

JSON requires UTF8 encoding. You can not send non-ASCII symbols explicitly. Use TXT UTF-8 Conversion action to encode to UTF-8
Web form data requires HTTP encoding (content-type: application/x-www-form-urlencoded). Look at the action HTTP encode / decode. You can not send non-ASCII symbols explicitly too.

Maybe you can send you problem task to me by email. I want to take a look
Oleg Yershov
Post Reply