AnsweredAssumed Answered

Post From FM

Question asked by bkaisin on Jul 18, 2018
Latest reply on Jul 18, 2018 by bkaisin

Hello,

 

I want to post to get a token from an API REST.

When I post it with Postman it works.

From my FM file I get "Internal server error".

I use the Insert url function.

 

I gess the problem is my cURL

"-H \"Cache-Control: no-cache\"

-H \"Content-Type: application/json\"

-d \"{\"auth\":{\"identity\":{\"methods\":[\"password\"],\"password\":{\"user\":{\"domain\":{\"name\":\"Default\"},\"name\":\"

my_login\",\"password\":\"my_psswrd\"}}}}}\""

 

I try to replace the data by a global variable, but same problem:

-d @$mylogin"

 

Any idea?

 

Ben

Outcomes