【发布时间】:2014-08-08 14:19:56
【问题描述】:
所以我有一个带有 CC3000 防护罩的 arduino uno,我想将数据推送到我的 Xively 帐户: https://xively.com/develop/yS4XfViIIEEkB94MJ4zs 但是,当我连接时出现此错误:
Connected!
Request DHCP
api.xively.com -> 64.94.18.120
Data Lengthz
PUT /v2/feeds/97346308.json HTTP/1.1
Host: api.xively.com
X-ApiKey:mykey
Content-Length: z
Connection: close
{"version":"1.0.0","datastreams" : [ {"id" : "Longitude","current_value" : ""},{"id" : "Latitude","current_value" : ""}]}
Connected to Xively server.
--------------------------------------
HTTP/1.1 411 Length Required
Date: Fri, 08 Aug 2014 13:19:33 GMT
Content-Type: text/html
Content-Length: 181
Connection: close
<html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/1.1.19</center>
</body>
</html>
我知道错误 411 是对内容长度的调用,但我已经在标题中声明了这一点,但我仍然收到此错误。 任何帮助将不胜感激:)
【问题讨论】: