Hi all,
I’m trying to complete data sets registration using DHIS2 web api, I’m currently using curl as below:
curl -x POST “server/api/completeDataSetRegistrations?ds=xxx&pe=2011&ou=xxx” -u user:password -v
And I’m always getting a http error code 406 , could not find acceptable representation.
Does anyone know what I’m doing wrong?
Thank you
Marc Garnica
Lars
(Lars Øverland)
2
Hi Marc,
this is admittedly a bit strange and we should improve it. Try defining the acceptable response representation:
-H “Accept: text/plain”
regards,
Lars
···
On Fri, Oct 7, 2016 at 3:20 PM, marcgarnica13@gmail.com wrote:
Hi all,
I’m trying to complete data sets registration using DHIS2 web api, I’m currently using curl as below:
curl -x POST “server/api/completeDataSetRegistrations?ds=xxx&pe=2011&ou=xxx” -u user:password -v
And I’m always getting a http error code 406 , could not find acceptable representation.
Does anyone know what I’m doing wrong?
Thank you
Marc Garnica
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
–
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
lars@dhis2.org
http://www.dhis2.org
Gassim
(AL-Gassim Sharaf Addin)
Split this topic
3
A post was merged into an existing topic: Complete DataSet Registration
Gassim
(AL-Gassim Sharaf Addin)
Closed
4
Repeated topic page, please continue the discussion here: