Re: [Dhis2-devs] Importing OrgUnit data via API using curl

2014-06-18 Thread David Muturi
Hi Lars, Here we go. today=$(date +"%d-%m-%Y") && mfl=${today}_mfl.xml && dxf=${today}_dxf.xml && cd /home/dhis/logs && /usr/bin/curl " http://api.ehealth.or.ke/http/getlastnfacilities.aspx?username=admin&password=x&count=10"; | xmlindent > "$mfl" && more $m

Re: [Dhis2-devs] Importing OrgUnit data via API using curl

2014-06-16 Thread Lars Helge Ă˜verland
Hi David, do you think you could post your curl command? Lars On Thu, Jun 12, 2014 at 9:41 AM, Morten Olav Hansen wrote: > Did you set the content-type header? it's either that, or something is > wrong with your data > > -- > Morten > > > On Thu, Jun 12, 2014 at 9:37 AM, David Muturi wrote

Re: [Dhis2-devs] Importing OrgUnit data via API using curl

2014-06-12 Thread Morten Olav Hansen
Did you set the content-type header? it's either that, or something is wrong with your data -- Morten On Thu, Jun 12, 2014 at 9:37 AM, David Muturi wrote: > Hi Team, > I am importing org unit data via the api using curl, on running the > script, this is the error I am getting. Anyone who has d

[Dhis2-devs] Importing OrgUnit data via API using curl

2014-06-12 Thread David Muturi
Hi Team, I am importing org unit data via the api using curl, on running the script, this is the error I am getting. Anyone who has done this before and has an idea what could be wrong ? I am doing this on DHIS 2.13 ---