OpenMRS returning 415 status code when using EMR-middleware over HTTPS

I am trying to connect to OpenMRS using EMR-Middleware. The REST API Call works correctly when using HTTPS, however, it is returning 415 status when connecting over HTTPS.

`

http://mydomain/EMR-Middleware/webapi/pull/pulldata/b56d5d16-bf89-4ac0-918d-e830fbfba290/2006-08-22%2022:21:48

`

Works Correctly.

https://mydomain/EMR-Middleware/webapi/pull/pulldata/b56d5d16-bf89-4ac0-918d-e830fbfba290/2006-08-22%2022:21:48

Returns **415 status**.

Content-Type is set to application/json for both requests.

Any help will be greatly appreciated.

In that Archtecture is it your EMR-Middleware to do the pull ??

It that looks like an issue with your middle-ware component rather than the OpenMRS server.

To go back to the issue , OpenMRS supports HTTPS