non-os_sdk_iot_demo can not use curl

sunsiyuan
Posts: 2
Joined: Wed Oct 26, 2016 6:35 pm

non-os_sdk_iot_demo can not use curl

Postby sunsiyuan » Thu Oct 27, 2016 10:15 am

我使用pc的curl工具向云申请设备的控制权,我的pc是windows的。
QQ图片20161027101501.png
QQ图片20161027101501.png (6.73 KiB) Viewed 11981 times
curl -X POST -H "Authorization:token798b55d0cd2983dc66e9e82b4b37a906a61543e5"-d "{\"token\":\"55b2bcb6495ded05464b1ea746171b625afb1ca2\"}" http://iot.espressif.cn/v1/key/authorize/
但是回复一直是500的错误。
这是一个什么问题。

JacksonLv
Posts: 7
Joined: Thu Aug 10, 2017 11:06 am

Re: non-os_sdk_iot_demo can not use curl

Postby JacksonLv » Thu Aug 10, 2017 11:09 am

I have the same problem as you ,seems the token didn't parsed correctly.

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: non-os_sdk_iot_demo can not use curl

Postby Her Mary » Thu Aug 10, 2017 2:15 pm

Authorization:token798b55d0cd2983dc66e9e82b4b37a906a61543e5

There should be a blank space between the number and "token", as below:

Code: Select all

Authorization:token 798b55d0cd2983dc66e9e82b4b37a906a61543e5

Who is online

Users browsing this forum: No registered users and 3 guests