curl -d @ datavalueset.xml" https://apps.dhis2.org/demo/api/dataValueSets" -H"内容类型:application / xml" -u admin:district -v
答案 0 :(得分:1)
有点想这样。请记住,您必须将xml作为字符串提供。
$http({
method: 'POST',
url: 'https://admin:district@apps.dhis2.org/demo/api/dataValueSets',
data: '<content/>', // put here your XML
headers: { "Content-Type": 'application/xml' }
})