Separate library that holds helper functions for the main OMF code.
Revision 19:9b357e31f61d, committed 2018-11-29
- Comitter:
- danielelopez
- Date:
- Thu Nov 29 18:53:59 2018 +0000
- Parent:
- 18:c6c9cce5d990
- Commit message:
- Made edits to remove old socket-based approach and removed debug settings that are now deprecated in the latest med-http library.
Changed in this revision
osisoft-omf.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c6c9cce5d990 -r 9b357e31f61d osisoft-omf.cpp --- 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