【问题标题】:How to send POST to ThingSpeak?如何向 ThingSpeak 发送 POST?
【发布时间】:2017-05-04 01:27:14
【问题描述】:

如何通过www.requestmaker.com 向 ThingSpeak 发送 POST?

我正在使用这个:

POST /update HTTP/1.1
Host: api.thingspeak.com
Connection: close
X-THINGSPEAKAPIKEY: XXXXXXXXXXXXXXXX
Content-Type: application/x-www-form-urlencoded\
Content-Length: 24
field1=34&field2=1

但我得到了这样的回应:

HTTP/1.1 404 Not Found
Content-Type: text/html; charset=utf-8
Content-Length: 728
Connection: close
Status: 404 Not Found
X-Request-Id: 36c8113c-3671-4302-85fa-f3ecdba364dc
X-Runtime: 0.019035
X-Powered-By: Phusion Passenger 4.0.57
Date: Mon, 19 Dec 2016 02:36:42 GMT
Server: nginx/1.9.3 + Phusion Passenger 4.0.57

有什么办法吗?

【问题讨论】:

  • 响应是 404... 你 1000% 确定你的 URL 正确吗?

标签: http post get arduino


【解决方案1】:

确保您拥有正确的 API 密钥 - 得到零且字母“O”不正确是很常见的。您要写入哪个 API 端点?您可以在 ThingSpeak 论坛上获得帮助:http://community.thingspeak.com/forum/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-09
    • 2019-10-02
    • 1970-01-01
    • 1970-01-01
    • 2021-05-29
    • 2014-08-04
    相关资源
    最近更新 更多