← Back to team overview

dhis2-users team mailing list archive

Re: [Dhis2-devs] Web API Not Allowing Bulk Data Values Transfer on Demo Site

 

Depending on the version of curl you have downloaded, SSL may not work. You
can try to get it running with SSL , as described here
http://stackoverflow.com/questions/3562095/using-curl-to-get-a-https-webpage-in-windows-7

Regards,
Jason


On Tue, Jun 2, 2015 at 10:43 AM, Edwin Mulwa <eddiemu@xxxxxxxxx> wrote:

> Hi Morten,
>
> I tried that but I got the following error:
>
> [image: Inline image 1]
>
> On Mon, Jun 1, 2015 at 12:20 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
> wrote:
>
>> Hi
>>
>> You need to use https when you are using cURL, it doesn't forward
>> automatically.
>>
>> --
>> Morten
>>
>> On Mon, Jun 1, 2015 at 4:03 PM, Edwin Mulwa <eddiemu@xxxxxxxxx> wrote:
>>
>>> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
>>> <html><head>
>>> <title>301 Moved Permanently</title>
>>> </head><body>
>>> <h1>Moved Permanently</h1>
>>> <p>The document has moved <a href="
>>> https://apps.dhis2.org/demo/api/dataValueSets";>here</a>.</p>
>>> </body></html>
>>>
>>>
>>> Hi,
>>>
>>> I was trying to use the DHIS Web API to transfer a bulk of data values
>>> to the demo site but it returned an error. This is the XML file I was
>>> trying to process:
>>>
>>> <dataValueSet xmlns="http://dhis2.org/schema/dxf/2.0";>
>>>   <dataValue dataElement="f7n9E0hX8qk" period="201501"
>>> orgUnit="DiszpKrYNg8" value="12"/>
>>>   <dataValue dataElement="f7n9E0hX8qk" period="201501"
>>> orgUnit="FNnj3jKGS7i" value="14"/>
>>>   <dataValue dataElement="f7n9E0hX8qk" period="201502"
>>> orgUnit="DiszpKrYNg8" value="16"/>
>>>   <dataValue dataElement="f7n9E0hX8qk" period="201502"
>>> orgUnit="FNnj3jKGS7i" value="18"/>
>>> </dataValueSet>
>>>
>>> Below is the result I get (I have also attached a screenshot of what is
>>> fully returned):
>>>
>>> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
>>> <html><head>
>>> <title>301 Moved Permanently</title>
>>> </head><body>
>>> <h1>Moved Permanently</h1>
>>> <p>The document has moved <a href="
>>> https://apps.dhis2.org/demo/api/dataValueSets";>here</a>.</p>
>>> </body></html>
>>>
>>> Any help to get this working will be highly appreciated.
>>>
>>> Regards,
>>>
>>> Edwin
>>>
>>>
>>> [image: Inline image 1]
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx
tel:+46764147049

PNG image

PNG image


Follow ups

References