我正在尝试使用来自tizen sdb的curl发送http请求。
我提出了像“curl -v example.com”这样的请求
收到错误消息:
bash-3.2# curl -v example.com
* STATE: INIT => CONNECT handle 0x1e178d8; line 1398 (connection #-5000)
* Rebuilt URL to: example.com/
* Added connection 0. The cache now contains 1 members
* Trying 93.184.216.34...
* TCP_NODELAY set
* Immediate connect fail for 93.184.216.34: Permission denied
* Closing connection 0
* The cache now contains 0 members
* Expire cleared
curl: (7) Couldn't connect to server
我可以请求使用浏览器应用。因此,设备的互联网连接没有问题。我还能够使用libcurl库从tizen本地应用程序发送http请求。但是从sdb shell,curl请求不起作用。有人可以帮忙吗?
答案 0 :(得分:0)
感谢我的同事,我终于找到了解决方案。在tizen 3.0中运行二进制文件之前需要添加权限。以下命令需要在sdb shell中运行(在root模式下)
# mount -o remount rw, /
# chsmack -e "System" /usr/bin/curl