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.
HTTPStatus.h@2:6d7bc51cc77b, 2013-09-05 (annotated)
- Committer:
- feb11
- Date:
- Thu Sep 05 14:28:29 2013 +0000
- Revision:
- 2:6d7bc51cc77b
- Parent:
- 0:ab9011f6ede5
Added some comments, formatted code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
feb11 | 0:ab9011f6ede5 | 1 | #ifndef HTTP_STATUS_H |
feb11 | 0:ab9011f6ede5 | 2 | #define HTTP_STATUS_H |
feb11 | 0:ab9011f6ede5 | 3 | |
feb11 | 0:ab9011f6ede5 | 4 | |
feb11 | 2:6d7bc51cc77b | 5 | enum HTTPStatus { |
feb11 | 2:6d7bc51cc77b | 6 | HTTP_OK = 200, |
feb11 | 0:ab9011f6ede5 | 7 | HTTP_BAD_REQUEST = 400, |
feb11 | 0:ab9011f6ede5 | 8 | HTTP_UNAUTHORIZED, |
feb11 | 0:ab9011f6ede5 | 9 | HTTP_FORBIDDEN = 403, |
feb11 | 0:ab9011f6ede5 | 10 | HTTP_NOT_FOUND, |
feb11 | 0:ab9011f6ede5 | 11 | HTTP_INTERNAL_ERROR = 500, |
feb11 | 0:ab9011f6ede5 | 12 | HTTP_INVALID = 0 |
feb11 | 0:ab9011f6ede5 | 13 | }; |
feb11 | 0:ab9011f6ede5 | 14 | |
feb11 | 0:ab9011f6ede5 | 15 | |
feb11 | 0:ab9011f6ede5 | 16 | #endif |
feb11 | 0:ab9011f6ede5 | 17 |