我使用下面的cURL命令將DataPower文件從applaince獲取到遠程Solaris服務器。 getFile.xml的DataPower文件傳輸返回base64
/usr/local/bin/curl -s --insecure --data-binary @getFile.xml -u username:password https://ip:port/service/mgmt/current
內容如下所示。
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<dp:request xmlns:dp="http://www.datapower.com/schemas/management">
<dp:get-file name="config:///unicenter.cfg"/>
</dp:request>
</env:Body>
</env:Envelope>
當我在Solaris上運行上面提到的cURL時,我得到了很長的base64編碼字符串。但我希望將完整的文件複製到Solaris。