http请求无效

时间:2014-07-31 16:39:13

标签: xml http curl

我正在尝试使用xml这样的服务来检索apfy.me数据

curl -H "x-apfy-authorization: [Your API key]" \http://apfy.me/www.blocket.se/burken/GetCategories

但是会引发以下错误:

  

卷曲:(1)libcurl中不支持或禁用协议http

当我尝试在我的mac上的终端中运行命令时。

我没有curl的经验,我只想要一个普通的网址字符串来获取xml数据。有没有办法将curl命令转换为附加到单个url字符串的标题?

1 个答案:

答案 0 :(得分:0)

删除引用后/http之前的curl -H "x-apfy-authorization: [Your API key]" http://apfy.me/www.blocket.se/burken/GetCategories。所以试试/。删除curl后,curl: (1) Protocol http not supported or disabled in libcurl在我的环境中取得了成功,而我又没有获得{{1}}。

相关问题