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.
HTTPHeader.h
- Committer:
- feb11
- Date:
- 2013-09-16
- Revision:
- 0:1abc65a0f50b
File content as of revision 0:1abc65a0f50b:
#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