arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
282 stars 170 forks source link

Porting of ArduinoHttpClient's Examples for MKRGSM #47

Closed Rocketct closed 5 years ago

Rocketct commented 5 years ago

i have change also the server URL in the examples to httpbin.org where required (get, post put, delete ...), a typical successful output is the following:

Starting Arduino web client.
connected
making DELETE request
Status code: 200
Response: {
  "args": {}, 
  "data": "", 
  "files": {}, 
  "form": {
    "age": "46", 
    "name": "light"
  }, 
  "headers": {
    "Connection": "close", 
    "Content-Length": "17", 
    "Content-Type": "application/x-www-form-urlencoded", 
    "Host": "httpbin.org", 
    "User-Agent": "Arduino/2.2.0"
  }, 
  "json": null, 
  "origin": "185.3.54.12", 
"url": "http://httpbin.org/delete"

}

Wait five seconds

let me know if ok for you. cc/ @sandeepmistry @facchinm @akash73