Simple Client TCP for FRDM

Dependencies:   EthernetInterface-FRDM mbed-rtos mbed

Fork of CyaSSL-EchoClient by wolf SSL

Revision:
2:e28e0426c0b0
Parent:
1:ac91b4f8d818
Child:
4:3cd5b93387c7
--- a/main.cpp	Wed Oct 08 05:04:36 2014 +0000
+++ b/main.cpp	Sat Feb 07 09:06:52 2015 +0000
@@ -83,13 +83,13 @@
     printf("SSL Connected\n") ;
     ***/
 
-    char msg[] = "GET / HTTP/1.0\r\nConnection: Close\r\n\r\n" ;
+    char msg[] = "GET / HTTP/1.0\r\n\r\n" ;
     // const char msg[] = "Hello World\r\n" ;
 
     if (/*** SSL   CyaSSL_write(ssl, end SSL***/
         socket.send(msg, sizeof(msg)-1) != (sizeof(msg)-1))
         err_sys("CyaSSL_write failed");
-
+    printf("Client Request: \n%s\n",msg) ;
     char buf[1024];
     int n ;
     puts("Server Response:\n") ;