Jump to content









Photo

Sending status stream using "POST" HTTP request

post http request hurl status stream electrovalve tutorial

  • Please log in to reply
1 reply to this topic

#1 Simo93

Simo93

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 22 February 2016 - 08:22 PM

Dear Carriots community members,

 

Does anybody know how can I create a similar HTTP request as in the electrovalve tutorial https://www.carriots...ectrovalve#data )  with (for example) Hurl.it (https://www.hurl.it/)? I have tried this with several differed header and parameter combinations and every time the result is the same "Not supported payload." and the number in the last_IP field doesn't change.

 

I have managed to create a listener (My_Listener.PNG) with correct settings (Rule_that_Listener_uses.PNG) and been able to change the "last_IP" field by using "POST" in status stream data management provided by Carriots (https://www.carriots...agement#streams) (Succesfull_attempt_with_Carriots_data_management.PNG) but using any other platform to create HTTP request (Failed_attempt_to_create_a_POST_HTTP_request.PNG and Failed_attempt_to_create_a_POST_HTTP_request2.PNG) results to the following error: "response": "Not supported payload." (Failed_attempt_Result.PNG).

 

The reason why I want to do this is that I'm using Arduino Uno connected to 1Sheeld shield that provides internet access instead of RasperryPi and with this kind of setup building the HTTP request is different than with RasperryPi and quite the same with Hurl.it.

 

Solving this problem would mean a great deal for me!

 

Best regards

Simo Simolin

Attached Files



#2 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 103 posts
  • LocationMadrid, Spain.

Posted 23 February 2016 - 04:04 PM

Hi,

 

I think that you need change your content/type in stream, for example:

 

Content/Type: application/json.

 

 

I hope this help you.

 

 

BR.







Also tagged with one or more of these keywords: post, http, request, hurl, status stream, electrovalve tutorial

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users