Channara
(Rin Channara)
14 August 2014 04:42
1
Hi all dev,
I am using DHIS2:
Version:
2.16
Build revision:
16253
Build date:
2014-07-28 01:07
When I import Trackedentityinstance through “curl” command for importing into localhost of DHIS2. I got the below text:
curl -d @track.json “http://localhost:8080/dhis/api/trackedEntityInstances ” -X POST -H “Content-Type:application/json” -u admin:xxxxx -V
···
curl 7.27.0 (i386-pc-win32) libcurl/7.27.0 OpenSSL/1.0.0j zlib/1.2.7 libidn/1.18
libssh2/1.4.2 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp
rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN Largefile NTLM SSL SSPI libz
thank you
Channara
morten
(Morten Hansen)
14 August 2014 05:11
2
Hi
curl -V only gives the version, if you want verbose, its -v
···
–
Morten
On Thu, Aug 14, 2014 at 11:42 AM, rin.channara@gmail.com wrote:
Hi all dev,
I am using DHIS2:
Version:
2.16
Build revision:
16253
Build date:
2014-07-28 01:07
When I import Trackedentityinstance through “curl” command for importing into localhost of DHIS2. I got the below text:
curl -d @track.json “http://localhost:8080/dhis/api/trackedEntityInstances ” -X POST -H “Content-Type:application/json” -u admin:xxxxx -V
curl 7.27.0 (i386-pc-win32) libcurl/7.27.0 OpenSSL/1.0.0j zlib/1.2.7 libidn/1.18
libssh2/1.4.2 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp
rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN Largefile NTLM SSL SSPI libz
thank you
Channara
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
Channara
(Rin Channara)
14 August 2014 09:18
3
Hi morten,
thank you, after I remove -v. I can process successful.
but I have one question: if the file json is encode as UTF-8. it is not working, it will get the error like below. IF we convert to UTF-8 without BOM, we got successful. IF SO, how can I coding to make auto importing?
···
–
Morten
On Thu, Aug 14, 2014 at 11:42 AM, rin.channara@gmail.com wrote:
Hi all dev,
I am using DHIS2:
Version:
2.16
Build revision:
16253
Build date:
2014-07-28 01:07
When I import Trackedentityinstance through “curl” command for importing into localhost of DHIS2. I got the below text:
curl -d @track.json “http://localhost:8080/dhis/api/trackedEntityInstances ” -X POST -H “Content-Type:application/json” -u admin:xxxxx -V
curl 7.27.0 (i386-pc-win32) libcurl/7.27.0 OpenSSL/1.0.0j zlib/1.2.7 libidn/1.18
libssh2/1.4.2 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp
rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN Largefile NTLM SSL SSPI libz
thank you
Channara
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp