Turing Web Server (Alpha)
Author |
Message |
andytyk
|
Posted: Sat Jul 31, 2004 12:32 am Post subject: Turing Web Server (Alpha) |
|
|
Yesterday I came across a post here, talking about a webserver written in Turing, so I set out to write one.
By the end of last night, I had a server that responds to all GET requests with the proper HTTP header, such as 404 or 200, with content-type etc. Still, I was not sastified as it could only serve ASCII files.
So today, I rewrote it using binary format, this lead to more parsing of Request headers but it was worth it. Unfortuneately, I didn't have time to code in headers today, parsing of non-binary files etc. so every comes out as binary and loads without headers.
It also does weird things with some binary files, such as cutting them short, but it works fine with most images I believe. Remember this is in Alpha stages of developement and would just like some comments. Future plans include, logging, CGI, etc.
The home dir is c:\www and runs on port 81. You can access other folders by http://localhost:81/../whatever, a security hole I've yet to fix.
Included is a screenshot of it in action.
New Version Jul-31/1pm : Supports 200 codes with select mime types. Binary file downloads now work after throttling the speed on the sends (Turing was sending too slow), and ../ ./ commands doesn't work anymore.
Description: |
Alpha Web Server + Screenshot |
|
Download |
Filename: |
aserver.zip |
Filesize: |
346.24 KB |
Downloaded: |
227 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Andy
|
Posted: Sat Jul 31, 2004 1:30 am Post subject: (No subject) |
|
|
very nice +50 bits
|
|
|
|
|
|
|
|