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.
Diff: HTTPSClient.cpp
- Revision:
- 1:95f92eed4e09
- Parent:
- 0:ab9011f6ede5
- Child:
- 2:6d7bc51cc77b
--- a/HTTPSClient.cpp Wed Sep 04 13:24:29 2013 +0000 +++ b/HTTPSClient.cpp Thu Sep 05 10:33:20 2013 +0000 @@ -39,6 +39,8 @@ { if(!line.compare(0,strlen("Content-Length"), "Content-Length")) sscanf(line.c_str(), "Content-Length: %d", &hdr._bodyLength); + else if(!line.compare(0,strlen("content-length"), "content-length")) + sscanf(line.c_str(), "content-length: %d", &hdr._bodyLength); line = readLine(); }while(line.size()); return hdr;