Home › Forum › Software › POST API for KIT1 › Reply To: POST API for KIT1
July 7, 2019 at 2:04 pm
#6664
Participant
I did even reconstruct the order of headers to match the KIT1 source, in intense if your server is reading headers incrementally:
POST /api/v1/upload/exp/ HTTP/1.1
Host: data.uradmonitor.com
User-Agent: uRADMonitor/1.1
X-User-id: 4085
X-User-hash: <hash_here>
X-Device-id: 13000206
Accept: */*
Content-Length: 39
Content-Type: application/x-www-form-urlencoded
01/6/0E/106/0F/123/0B/0/0C/0/0D/54/10/1
200
{"success":"ok"}
POST /api/v1/upload/exp/ HTTP/1.1
Host: data.uradmonitor.com
User-Agent: uRADMonitor/1.1
X-User-id: 4085
X-User-hash: <hash_here>
X-Device-id: 13000206
Accept: */*
Content-Length: 43
Content-Type: application/x-www-form-urlencoded
01/60/0E/106/0F/123/0B/24/0C/399/0D/54/10/1
200
{"success":"ok"}
POST /api/v1/upload/exp/ HTTP/1.1
Host: data.uradmonitor.com
User-Agent: uRADMonitor/1.1
X-User-id: 4085
X-User-hash: <hash_here>
X-Device-id: 13000206
Accept: */*
Content-Length: 44
Content-Type: application/x-www-form-urlencoded
01/120/0E/106/0F/123/0B/31/0C/400/0D/54/10/1
200
{"success":"ok"}
POST /api/v1/upload/exp/ HTTP/1.1
Host: data.uradmonitor.com
User-Agent: uRADMonitor/1.1
X-User-id: 4085
X-User-hash: <hash_here>
X-Device-id: 13000206
Accept: */*
Content-Length: 44
Content-Type: application/x-www-form-urlencoded
01/180/0E/106/0F/123/0B/24/0C/400/0D/54/10/1
200
{"success":"ok"}
POST /api/v1/upload/exp/ HTTP/1.1
Host: data.uradmonitor.com
User-Agent: uRADMonitor/1.1
X-User-id: 4085
X-User-hash: <hash_here>
X-Device-id: 13000206
Accept: */*
Content-Length: 44
Content-Type: application/x-www-form-urlencoded
01/241/0E/106/0F/123/0B/19/0C/400/0D/54/10/1
200
{"success":"ok"}
Still, no data passed. I would debug it myself, if I would have ENC eth adapter, just need to print to UART message before sending.