I want to send requests to an on-premise API server using "HTTP with Azure AD" and an on-premise gateway. (Using Service Layer and Basic Authentication.)
If I simply make a GET request, it works fine. (Without Body)

If I do a POST without Body, it works fine.

However, if I do a POST with Body, it will result in a BadGateway error.

{<br>"error": {<br>"code": 500,<br>"message": "{\r\n \"error\": {\r\n \"code\": 500,\r\n \"source\": \"japan-001.azure-apim.net\",\r\n \"clientRequestId\": \"41628a7a-a8fa-45e4-a80a-b2b956ba9cea\",\r\n \"message\": \"BadGateway\",\r\n \"innerError\": {\r\n \"debugInfo\": \"clientRequestId: 41628a7a-a8fa-45e4-a80a-b2b956ba9cea\"\r\n }\r\n }\r\n}"<br>}<br>}
When I do this in POSTMAN in an on-prem environment with an API server, everything works fine.
Please let me know how I can get rid of the error.