How to pass paramaters for data in HTTP request?

I’m trying to use HTTP requests to authenticate my users. But I’m not able to pass the parameters to the data list to send them through the body.

http

When I try to make a request to obtain a token, I get an error response displaying the parameter data empty: “data:[]”.

I already tried to pass these parameters via header and in the body through a formula creating a value with a JSON structure (key: value), but nothing solved my problem.

Does anyone have a suggestion to give me?

Well, I found a solution:

The syntax for Formula in Request Body is:
{"username":pageVars.credentials.username,"password":pageVars.credentials.password}

WARNING: ignore the validation message on formula console "Object property “password” is not JSON-serializable

2 Likes