Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: EthHTTPServer if201410_section5 _PE2E_12-04_EthernetInterfaceServer MGAS_GR_Peach ... more
Fork of WiFlyHTTPServer by
Diff: HTTPConnection.cpp
- Revision:
- 1:6b7472d5e9ee
- Parent:
- 0:7a2421e63e74
- Child:
- 2:8653bbcf7e58
diff -r 7a2421e63e74 -r 6b7472d5e9ee HTTPConnection.cpp
--- a/HTTPConnection.cpp Sun May 26 20:13:28 2013 +0000
+++ b/HTTPConnection.cpp Sun May 26 22:49:42 2013 +0000
@@ -8,7 +8,7 @@
using std::string;
-#if (1 && !defined(TARGET_LPC11U24))
+#if (0 && !defined(TARGET_LPC11U24))
#define INFO(x, ...) std::printf("[HttpConnection : INFO]"x"\r\n", ##__VA_ARGS__);
#define WARN(x, ...) std::printf("[HttpConnection : WARN]"x"\r\n", ##__VA_ARGS__);
#define ERR(x, ...) std::printf("[HttpConnection : ERR]"x"\r\n", ##__VA_ARGS__);
@@ -86,10 +86,10 @@
}
}
if (rcvd == 0) {
- sprintf(echoHeader,"HTTP/1.1 200 OK\n\rContent-Length: %d\n\rContent-Type: text\n\rConnection: Close\n\r\n\r",strlen(buffer));
- m_Tcp.set_blocking(true);
- m_Tcp.send_all(echoHeader,strlen(echoHeader));
- m_Tcp.send_all(buffer,strlen(buffer));
+// sprintf(echoHeader,"HTTP/1.1 200 OK\n\rContent-Length: %d\n\rContent-Type: text\n\rConnection: Close\n\r\n\r",strlen(buffer));
+// m_Tcp.set_blocking(true);
+// m_Tcp.send_all(echoHeader,strlen(echoHeader));
+// m_Tcp.send_all(buffer,strlen(buffer));
/// INSERT PRCESSING OF REQUESST HERE
/// END OF PROCESSING REQUEST
