0

How to make http authentication in REST API call from javascript

I have a question that involves using OpenMRS. I have linked the page in my question. My question is how do you remotely connect to the database that is embedded in the system that comes with the standalone download that you can get with OpenMRS. We are trying to access the system outside the web based interface that retrieves the information using the REST API associated with this system. In the link above they are using base64 coded password and username inside setRequestHeader. What is the purpose of putting it in that code format? And is it exactly : then encoded base64 to get the letter number combination?

Community
  • 1
  • 1
  • Welcome to StackOverflow. Please visit [ask] question. Your question is not appropriate for this site. – afzalex Oct 04 '14 at 20:55

1 Answers1

0

As described on http://openmrs.org/download/, the OpenMRS Standalone application is not intended for production use and is more designed for evaluating the system. For advanced interoperability as you describe, it is better to use the Enterprise WAR application from that page, installed in a separately-installed Java Servlet container such as Apache Tomcat, and a separately-installed database such as MySQL.

For additional OpenMRS support, I'd suggest heading to http://om.rs/ask.

  • ok. Let me ask this question. Can you connect an android device to the standalone or do I have to do the instructions that you stated above? – Dwain Robinson Oct 06 '14 at 12:59