将cfhttp与unsplash api一起使用会显示一个"收到的致命警报:协议版本"错误信息

时间:2017-10-09 14:48:50

标签: json coldfusion cfhttp

我正在连接到unsplash api(它允许在网站中使用免费图像),问题是直到今天一切正常。用户将输入一个关键字,然后使用以下代码发送:

<cfhttp url="https://api.unsplash.com/search/photos" method="get" result="fetchSplash">
    <cfhttpparam type="url" name="client_id" value="xxx">
    <cfhttpparam type="url" name="query" value="#url.unsplashme#">
    <cfhttpparam type="url" name="page" value="1">
    <cfhttpparam type="url" name="per_page" value="20">
</cfhttp>

JSON被发送回图像信息没有任何问题,但现在我收到以下错误:

enter image description here

我不知道问题是什么,因为我们的服务器上没有任何变化,如果我在浏览器中测试这样的网址,我会得到结果((ID号已被删除):

https://api.unsplash.com/search/photos?client_id=xxx&page=1&query=office

任何帮助表示赞赏!

0 个答案:

没有答案