From 1bd2498a155f3b802d87b04587ac356642f02f7f Mon Sep 17 00:00:00 2001 From: Don Coleman Date: Thu, 24 Mar 2016 01:08:16 -0400 Subject: [PATCH] Use carriage return and line feed in request rfc2616 --- RestClient.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/RestClient.cpp b/RestClient.cpp index 6eac205..33cdc0d 100644 --- a/RestClient.cpp +++ b/RestClient.cpp @@ -77,28 +77,29 @@ int RestClient::request(const char* method, String path, String body){ requestString += " "; requestString += path; requestString += " HTTP/1.1"; - requestString += "\n"; + requestString += "\r\n"; for(int i=0; iprint(requestString); + HTTP_DEBUG_PRINT(requestString); // make sure you've sent all bytes. Ugly hack. // TODO: check output buffer instead?