diff options
author | Dean Camera <[email protected]> | 2010-01-21 13:45:44 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-01-21 13:45:44 +0000 |
commit | 03ee87b35abdb8b92e8b55ec040fa943f9a6786c (patch) | |
tree | f6afd9650084eae3f0c92f47c6f205694168ad32 /Demos | |
parent | 41ad6bd6d7e886412f6c12d98f040e51c3ee4fdf (diff) | |
download | qmk_firmware-03ee87b35abdb8b92e8b55ec040fa943f9a6786c.tar.gz qmk_firmware-03ee87b35abdb8b92e8b55ec040fa943f9a6786c.zip |
Fix up the incomplete Webserver project so that it integrates with the uIP stack correctly. Add simple HTTP webserver as a placeholder until FatFS can be integrated.
Begin to look into the RNDIS Host Class Driver, which seems to crash on test hardware after many packets have been received.
Diffstat (limited to 'Demos')
-rw-r--r-- | Demos/Device/ClassDriver/RNDISEthernet/Lib/Webserver.c | 5 | ||||
-rw-r--r-- | Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/RNDISEthernet/Lib/Webserver.c b/Demos/Device/ClassDriver/RNDISEthernet/Lib/Webserver.c index dff684b317..7f2502027e 100644 --- a/Demos/Device/ClassDriver/RNDISEthernet/Lib/Webserver.c +++ b/Demos/Device/ClassDriver/RNDISEthernet/Lib/Webserver.c @@ -43,7 +43,10 @@ char PROGMEM HTTP200Header[] = "HTTP/1.1 200 OK\r\n" "Server: LUFA RNDIS\r\n"
"Content-type: text/html\r\n"
"Connection: close\r\n\r\n";
-
+
+/** HTTP server response header, for transmission before a resource not found error. This indicates to the host that the given
+ * given URL is invalid, and gives extra error information.
+ */
char PROGMEM HTTP404Header[] = "HTTP/1.1 404 Not Found\r\n"
"Server: LUFA RNDIS\r\n"
"Connection: close\r\n\r\n";
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c b/Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c index bf67b5d3a6..7ba1928818 100644 --- a/Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c +++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/Webserver.c @@ -44,6 +44,9 @@ char PROGMEM HTTP200Header[] = "HTTP/1.1 200 OK\r\n" "Content-type: text/html\r\n"
"Connection: close\r\n\r\n";
+/** HTTP server response header, for transmission before a resource not found error. This indicates to the host that the given
+ * given URL is invalid, and gives extra error information.
+ */
char PROGMEM HTTP404Header[] = "HTTP/1.1 404 Not Found\r\n"
"Server: LUFA RNDIS\r\n"
"Connection: close\r\n\r\n";
|