From d27a055a239ee8542f9bd895a5f5b86e17816004 Mon Sep 17 00:00:00 2001 From: aBARICHELLO Date: Mon, 1 Oct 2018 12:49:46 -0300 Subject: [PATCH] Add clarification about HTTP Requests --- tutorials/networking/http_request_class.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tutorials/networking/http_request_class.rst b/tutorials/networking/http_request_class.rst index dbf3dd590..5fa95a0f3 100644 --- a/tutorials/networking/http_request_class.rst +++ b/tutorials/networking/http_request_class.rst @@ -67,5 +67,7 @@ Until now we have limited ourselves to requesting data from a server. But what i var query = JSON.print(data_to_send) # Add 'Content-Type' header: var headers = ["Content-Type: application/json"] - $HTTPRequest.request(url, headers, use_ssl, HTTPClient.METHOD_POST, query) + $HTTPRequest.request(url, headers, use_ssl, HTTPClient.METHOD_POST, query) +Keep in mind that you have to wait for a request to finish before sending another one. Making multiple request at once requires you to have one node per request. +A common strategy is to create and delete HTTPRequest nodes at runtime as necessary.