ESP8266 NodeMCU Module – HTTP



ESP8266 NodeMCU HTTP Module functions

http.delete() Executes a HTTP DELETE request.
http.get() Executes a HTTP GET request. Executes a HTTP POST request.
http.put() Executes a HTTP PUT request.
http.request() Execute a custom HTTP request for any HTTP method.



  • Executes a HTTP DELETE request. Note that concurrent requests are not supported.
  • Syntax : http.delete(url, headers, body, callback
  • Parameters
    • url The URL to fetch, including the http:// or https:// prefix
    • headers Optional additional headers to append, including \r\n; may be nil
    • body The body to post; must already be encoded in the appropriate format, but may be empty
    • callback The callback function to be invoked when the response has been received or an error occurred; it is invoked with the arguments status_code, body and headers. In case of an error status_code is set to -1.
  • Returns : nil



HTTP Get Example

  • Read your thing-speak text file from below code




HTTP Post Example

Post Data to thinkspeak website



Post Data to aruneworld Website






Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

if you have any queries call us +918300026060 or WhatsApp Dismiss


Your Cart

%d bloggers like this: