Separate library that holds helper functions for the main OMF code.

Revision:
19:9b357e31f61d
Parent:
18:c6c9cce5d990
--- a/osisoft-omf.cpp	Mon Jun 25 21:09:08 2018 +0000
+++ b/osisoft-omf.cpp	Thu Nov 29 18:53:59 2018 +0000
@@ -62,6 +62,7 @@
     }
 }
 
+/* Deprecated after changes to TLS Socket 
 // ************************************************************************
 // Helper function that sends an actual web request
 // ************************************************************************
@@ -73,8 +74,8 @@
     //HttpsRequest* post_req = new HttpsRequest(network, SSL_CA_PEM, HTTP_POST, TARGET_URL); // Old: doesn't re-use sockets
     HttpsRequest* post_req = new HttpsRequest(socket, HTTP_POST, TARGET_URL);
 
-    // Turn on debugging - this hides TLS connection information
-    post_req->set_debug(true);
+    // Turn on debugging - this hides TLS connection information (deprecated)
+    //post_req->set_debug(true);
 
     // Add headers: content type and authentication
     post_req->set_header("Content-Type", "application/json");
@@ -105,6 +106,7 @@
     // Free up the request object
     delete post_req;
 }
+*/
 
 // ************************************************************************
 // Helper function that sends an actual web request; does not reuse sockets
@@ -118,7 +120,7 @@
         // Create the new request
         HttpsRequest* post_req = new HttpsRequest(network, SSL_CA_PEM, HTTP_POST, TARGET_URL);
     
-        // Turn on debugging - this hides TLS connection information
+        // Turn on debugging - this hides TLS connection information (deprecated)
         //post_req->set_debug(true);
     
         // Add headers: content type 
@@ -159,7 +161,7 @@
         // Create the new request
         HttpsRequest* post_req = new HttpsRequest(network, SSL_CA_PEM, HTTP_POST, TARGET_URL);
     
-        // Turn on debugging - this hides TLS connection information
+        // Turn on debugging - this hides TLS connection information (deprecated)
         //post_req->set_debug(true);
     
         // Add headers: content type