Small wrapper of TLS_cyassl

Dependents:   HTTPSClientExample2

This is a small wrapper of TLS_cyassl to easily sends GET requests over HTTPS. This library is used in the same way as HTTPSClient_axTLS.

Import programHTTPSClientExample2

This example shows how to use the TLS_cyassl library. It connects to twitter.com and downloads a webpage.

Revision:
0:1abc65a0f50b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HTTPHeader.h	Mon Sep 16 10:39:01 2013 +0000
@@ -0,0 +1,28 @@
+#ifndef HTTP_HEADER_H
+#define HTTP_HEADER_H
+
+#include <string>
+#include "HTTPStatus.h"
+
+class HTTPSClient;
+
+class HTTPHeader
+{
+public :
+
+    friend class HTTPSClient;
+
+    HTTPHeader(HTTPStatus status = HTTP_INVALID);
+
+    static std::string getRequest(const std::string &path, const std::string &host, const int port);
+
+    HTTPStatus getStatus() const;
+    int getBodyLength() const;
+private :
+
+    HTTPStatus _status;
+    int _bodyLength;
+};
+
+#endif
+