Marcos Kirsch
50b1c09570
Updated to reflect latest status of the code
2015-02-28 17:00:03 -06:00
Marcos Kirsch
c1ca93a78c
Removed parameter that is no longer needed
2015-02-28 16:57:30 -06:00
Marcos Kirsch
f43025f237
init shows new way of starting server
2015-02-28 16:40:36 -06:00
Marcos Kirsch
5ebfa6ac8b
Updated to reflect server changes
2015-02-28 16:40:06 -06:00
Marcos Kirsch
5b472f3554
Add yield so that looong listings don't overflow mcu's buffer
2015-02-28 16:39:40 -06:00
Marcos Kirsch
77920f4a94
Big refactoring: server now uses a separate thread that yields and then resumes on 'sent'. This allows us to serve large files. Moved serving of error pages and serving of static files into separate scripts httpserver-error.lua and httpserver-static.lua
2015-02-28 16:39:06 -06:00
Marcos Kirsch
f4875cbd86
Fix indentation
2015-02-28 16:34:24 -06:00
Marcos Kirsch
dfdae5dacd
Updates to README, added notes on memory usage, etc.
2015-02-22 16:44:44 -06:00
Marcos Kirsch
7c2d597bdc
Delete file that is not part of the server
2015-02-22 16:29:08 -06:00
Marcos
34d2e1ef55
Delete test.lua
...
No need to track this in the published repository, it's for local tests.
2015-02-22 16:27:30 -06:00
Marcos Kirsch
d73bd73211
Added back improved version of validateMethod
...
Reduced MIME types list to save memory
Fixed argument parsing! this is biggie
General cleanup and bugfixes
2015-02-22 16:25:31 -06:00
Marcos Kirsch
796d17b205
commit some changes but I want to stop tracking, so that's next
2015-02-22 16:21:03 -06:00
Marcos Kirsch
9cea7cd370
Modify so all file types are uploaded, not just HTML files
2015-02-22 16:20:36 -06:00
Marcos Kirsch
9459bb2645
Add code that shows how to start the server
2015-02-22 16:09:06 -06:00
Marcos Kirsch
068b45023e
Delete, this is now part of node-info.lua
2015-02-22 16:06:35 -06:00
Marcos Kirsch
316af66d3c
Improve demo files
2015-02-22 16:06:06 -06:00
Marcos Kirsch
5fe2dfcf9d
Add script that shows how arguments are handled by server
2015-02-22 16:05:35 -06:00
Marcos Kirsch
5c1404dcea
Erase, not used
2015-02-22 16:05:10 -06:00
Marcos Kirsch
6ba7c02381
Attempt at improving the printing, but will delete anyway
2015-02-22 16:04:08 -06:00
Marcos
524730d4e5
Merge pull request #1 from samdieck/master
...
Makefile for uploading server files using luatool.py
2015-02-17 22:02:36 -06:00
Marcos Kirsch
ac387a6c2c
add open issue
2015-02-15 16:54:05 -06:00
Marcos Kirsch
62760f1f80
add feature
2015-02-15 16:53:08 -06:00
Marcos Kirsch
c0d6218397
Support for Lua scripts
2015-02-15 16:51:21 -06:00
Marcos Kirsch
00475af342
Add links to examples
2015-02-15 16:48:54 -06:00
Marcos Kirsch
3f5caa7afb
Clean up
2015-02-15 16:48:30 -06:00
Marcos Kirsch
685102f478
Updates
2015-02-15 16:48:04 -06:00
Marcos Kirsch
fa2e85dbb0
Support for Lua scripts
2015-02-15 16:46:29 -06:00
Marcos
94c90c39ab
Delete escape.py
...
experimental file was not needed
2015-02-14 21:50:16 -06:00
Marcos Kirsch
d23cafba97
Updates
2015-02-14 21:48:35 -06:00
Marcos Kirsch
f07b5d8760
increased timer time
2015-02-14 21:32:53 -06:00
Marcos Kirsch
51bfb3a8cc
Minor cleanup
2015-02-14 21:31:08 -06:00
Marcos Kirsch
5d4887927d
MIME types now correct
...
Support for different mime types based on the file extension.
Added some code for parsing the arguments after the file
(index.html?a=b&c=d) but it’s not in use yet.
2015-02-14 19:38:38 -06:00
Marcos Kirsch
b75d610e6a
Shortened code.
...
Reimplemented parseRequest (simpler). Shortened onReceive()
2015-02-14 01:48:49 -06:00
Marcos Kirsch
6e58f58b6d
Redesigned remote uses CSS
2015-02-14 01:22:36 -06:00
Marcos Kirsch
c33ba75395
Send files in little chunks, large files work now.
2015-02-14 01:19:38 -06:00
Marcos Kirsch
8272d8f59c
Functional GET can serve text files up to 1 KB
2015-02-14 00:22:23 -06:00
Marcos Kirsch
b0cbe2a77f
Fix for Lua builds without floating point.
2015-02-13 23:08:28 -06:00
Samuel A. Dieck
44b40f00f3
Fixed upload_lua target in makefile
2015-02-13 00:19:26 -06:00
Samuel A. Dieck
2da23c36ed
Added makefile to upload files via luatool.
2015-02-13 00:12:43 -06:00
Marcos Kirsch
d137648706
More of a scratch pad, shouldn't be in source control at all but oh well...
2015-02-08 22:12:26 -06:00
Marcos Kirsch
ef30ef3811
These files are gone...
2015-02-08 22:10:58 -06:00
Marcos Kirsch
294b781a52
Updates
2015-02-08 22:10:24 -06:00
Marcos Kirsch
3d4e4ee501
First pass of server. Not fully operational. Basic GET works, serves requested file. But server runs out of memory or/and only works with one connection.
2015-02-08 22:09:20 -06:00
Marcos Kirsch
3e452992c8
Renamed file and minor cleanup.
2015-02-08 22:08:18 -06:00
Marcos Kirsch
a8d408f375
Some example HTML file.
2015-02-08 22:06:50 -06:00
Marcos Kirsch
1ff3867733
Base64 decoding function is operational
2015-02-08 22:05:08 -06:00
Marcos Kirsch
a86b6711bb
Cleaned up
2015-02-08 22:03:44 -06:00
Marcos Kirsch
4dffc7009d
Function for Base64 decoding, needed for luatool.py binary uploads
2015-02-07 12:30:03 -06:00
Marcos Kirsch
b1f87f3ffa
Functional Base64 prior to cleanup
2015-02-07 12:12:48 -06:00
Marcos Kirsch
1c709b838b
Minimalistic server can be started and returns hardcoded message, prior to cleanup
2015-02-06 21:54:25 -06:00