0
調用系統('curl')以下是我在Ubunu 14.04上嘗試的實驗。無法從MATLAB 2013 a
curl -X POST -d '<request>something<\request>' --header "Content-Type:application/xml" url
在終端上此命令的作用,但它不能作爲一個MATLAB命令使用系統(CMD),即
cmd = 'curl -d ''<request>something<\request>'' url' ;
system(cmd)
在這裏工作是從MATLAB錯誤消息:
curl: /usr/local/MATLAB/R2013a/bin/glnxa64/libcurl.so.4:
no version information available (required by curl)
curl: (48) An unknown option was passed in to libcurl
:1: parser error : Document is empty
^-:1: parser error : Start tag expected, '<' not found^
ans = 1
除/usr/local/MATLAB/R2013a/bin/glnxa64/
以外,我沒有任何libcurl.so
文件。
[email protected]:~$ ls /usr/lib/libcu*
ls: cannot access /usr/lib/libcu*: No such file or directory
[email protected]:~$ ls /usr/local/lib/libcu*
ls: cannot access /usr/local/lib/libcu*: No such file or directory
問候,
我認爲你的錯誤是「Document is empty」和「Start tag expected,'<'not found」。 libcurl.so被找到,否則你不會得到這個消息。 – Yvon