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.

Files at this revision

API Documentation at this revision

Comitter:
feb11
Date:
Thu Sep 05 10:33:20 2013 +0000
Parent:
0:ab9011f6ede5
Child:
2:6d7bc51cc77b
Commit message:
remove printf

Changed in this revision

HTTPSClient.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;