MediaTek-Labs / Arduino-Add-On-for-LinkIt-SDK

Arduino board support package for LinkIt 7697
https://docs.labs.mediatek.com/resource/linkit7697-arduino/en
34 stars 33 forks source link

LWiFi POST request not working with IFTTT/maker/webhooks #111

Closed showaykerker closed 5 years ago

showaykerker commented 5 years ago

Reproduce Steps

  1. The setup procedure was following the example given in the sketch LWiFi/WiFiWebClient.ino
  2. I simply modified the server link, WiFi connecting part and the following critical line: client.println("POST https://maker.ifttt.com/trigger/[my_Porject]/with/key/[my_key]?value1=00");

Error & Expected Results

The post request is expected to send a trigger with value1 as parameter and trigs an event, but it showed "403 bad request".

Am I doing anything wrong ?

Also, is there a way to pass a json through GET request ?

Any suggestions or possible solutions are appreciated, thanks !

Environment

showaykerker commented 5 years ago

My apologize of making a stupid mistake that mistaken POST request to GET request. Please close this issue, thank you.