wrapper of TLS library to connect to HTTPS servers

Dependents:   HTTPSClientExample

This library provides a simple interface to send GET requests over HTTPS. Notice that this library uses the axTLS library for the implementation of TLS.

Import programHTTPSClientExample

Connect to twitter.com and copies this webpage to a file.

HTTPHeader.h

Committer:
feb11
Date:
2013-09-12
Revision:
3:18af58231990
Parent:
2:6d7bc51cc77b

File content as of revision 3:18af58231990:

#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