I am getting an error when I am sending REST query from mirth’s “httpSender” but when I am using the same message in “test” module of openMRS then it is getting accepted. The error is https://pastebin.com/Fk5aanSS
I found out that for sending REST request one “needs” to send a request header of Authorization:Basic = username:password or one has to set a cookie of sessionId.
Eg-
URL: http://localhost:8083/openmrs-standalone/ws/rest/v1/visit
METHOD: POST