日期:2016-126 auhter:pgx RestFul方式服务器IP为183.230.40.33,端口80; EDP方式服务器IP为183.230.40.39,端口876 一、使用RestFul方式服务器进行测试 1、post上传: POST /devices/4093233/datapoints?type=3 HTTP/1.1 api-key:cEhPNaYHewEuIOw2XOYJ30SoLkU= Host:api.heclouds.com Connection:close Content-Length:23 {"shidu":20,"wendu":18} 2、响应: HTTP/1.1 200 OK Date: Tue, 06 Dec 2016 07:20:03 GMT Content-Type: application/json Content-Length: 26 Connection: close Server: Apache-Coyote/1.1 Pragma: no-cache {"errno":0,"error":"succ"}