Single instance HTTP Server using new Ethernet Interface with bug fix for URL arguments
Fork of HTTPServer by
Diff: HTTPConnection.cpp
- Revision:
- 1:6b7472d5e9ee
- Parent:
- 0:7a2421e63e74
- Child:
- 2:8653bbcf7e58
--- 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