Does anyone know if there is a bug in the ws module around connecting via SSL?
-Darius (by phone) On Jan 13, 2012 11:03 AM, "Mario Giraldo Londoño" <[email protected]> wrote: > Buenos días es que estoy probando el web service para crear pacientes > con curl y cuando lo hago con la aplicacion en http me funciona bien, > pero con https, me genera el siguiente error: > > Good morning is that I am testing the web service to create patients > with curl and when I do with my http application works well, but with > https, I generated the following error: > > HTTP/1.1 401 Unauthorized > Date: Wed, 11 Jan 2012 21:44:17 GMT > Set-Cookie: JSESSIONID=6F00AF9BD465C40BD40FC5E7660B52CE; Path=/; Secure > WWW-Authenticate: Basic realm="OpenMRS at NEED-TO-CONFIGURE/ws/rest/" > Content-Type: application/json;charset=UTF-8 > Transfer-Encoding: chunked > > {"error":{"message":"User is not logged > > in","code":"org.openmrs.aop.AuthorizationAdvice:115","detail":"org.openmrs.api.APIAuthenticationException: > Privileges required: [Edit Patients, Add Patients]\n\tat > > volvi a intentar y me genero otro mensaje de error. Adjunto el mensaje de > error. > > I tried again and generates another error message. adjunct the error > message. > > > ***** > echo '{ > "preferredName":{ > "identifier":"tbc123ezdr", > "identifierType":"8d79403a-c2cc-11de-8d13-0010c6dffd0f", > "location":"VitalBox"}, > "preferredName":{ > "givenName":"Prueba-serWeb", > "familyName":"Programmer"}, > "birthdate":"1900-08-26", > "gender":"M" > }' | curl -i -u admin:ClaveAdmin -H "Content-type: > application/json" -X POST -d @- > https://myvitalbox.co/ws/rest/v1/patient > > > > Gracias. > > > -- > Mario Alberto Giraldo > Cel: (+ 57) 316 829 99 69 > Tel: (+ 57 4) 460 07 27 Ext. 5557 > VitalBox.co | MyVitalbox.co > > _________________________________________ > > To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to > [email protected] with "SIGNOFF openmrs-devel-l" in the body > (not the subject) of your e-mail. > > [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l] > _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

