Jump to content









Photo

Bad Request (Invalid Verb)

REST API

  • Please log in to reply
No replies to this topic

#1 Thomas_Socomec

Thomas_Socomec

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 29 July 2016 - 07:57 AM

Hello Carriot's users,

I need your help to finalize my implementation of the REST command on my STM32F4xx.

I got an error from the server when I try to add a new device. The error is :

 

<h1>Bad Request (Invalid Verb)</h1>

 

I don't find where is the problem on my request :

 

POST /devices/

Host: api.carriots.com
Connection: close
Content-Type: application/json; charset=utf-8
Content-Length: 101
carriots.apiKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Accept: application/json
User-Agent: MICRIUM-uC/HTTPcV3
{
  "type":"Other",
  "name":"test",
  "id_group":"defaultGroup@Thomas.Thomas",
  "enabled":true
}
 
Is there anyone who can help me ?
 
Thanks in advance,
Thomas





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users