Hi,
i want to send post to request to Api to catch a Token
this is my script and i dont know why i received invalid request from the Api. i guss i wrote something wrong in authoriziation but i am not sure
There are many things that could be wrong: is the endpoint correct, do not you have to add the authorization string to a special header, does not the content-type have to be application/json, ...? Without the documentation of the API it is impossible to help.
freddyp wrote: ↑Mon Sep 16, 2019 9:05 am
There are many things that could be wrong: is the endpoint correct, do not you have to add the authorization string to a special header, does not the content-type have to be application/json, ...? Without the documentation of the API it is impossible to help.
Hi
The endpoint is correct i checked it. I checked that with postman and it works.
in postman in Authorization tab, Type is Basic and username password and there are two keys and values in Body Tab
i want to write this structure in switch
i solved the problem and i explain what did i do.
first of all when u use basic authentication method, u dont need to write theHTTP.authorization just put username in theHTTP.user and password in theHTTP.password and theHTTP.authScheme is HTTP.BasicAuth in this form username and password are encoded in Base64.
But if u have username and password in Base64 write