I am trying to consume a publicly exposed URL and I need to pass auth headers to it. The format of the HTTP header is :
auth:{"Username": "p09jh789-f098-h6fv-b386-008cd88bd4fe","Password": "xxxxxxxx","authKey": "62b6380d-9e06-6age-cf09-134614b77d5e"}
I tried to set auth header for the REST API and I am not able to pass this JSON string since text headers throw up datatype issue. This happens even if I try to escape the JSON string. Please help me with doing it.