FHannes Posted January 19, 2012 Share Posted January 19, 2012 I've been working on a new project every now and then when I had some spare time lately. It's called HttpBox, though the title of the app still shows ServerBox... It's basically a (currently) simple webserver you can run on a windows machine. The first version is almost done, of course a lot more features will be added in the future. Currently I've spent roughly 3 hours coding this. It servers a folder as website, it defaults to index.html if no file is entered and it can currently serve up about 6 file formats including html, jpg and txt, though adding more is just a matter of specifying their mime types in a text file, so no biggy. When you close the window it jumps to the tray, you click Exit to close it. The server starts and stops instantly and blocks access to any files starting with a dot as they are normally hidden on linux. Screenshots: Like/dislike? Why? (And before you mention it, SCAR is my main focus in programming, so don't worry) Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 19, 2012 Author Share Posted January 19, 2012 The first version is almost done, here's a more current screenshot: Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted January 20, 2012 Share Posted January 20, 2012 It's nice when you get to do a "fun" project now and then. Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 20, 2012 Author Share Posted January 20, 2012 Yeah, developing SCAR can get rather stressful at times, now I've got something new to play with when I need a break ---------- Post added 01-21-2012 at 12:18 AM ---------- Previous post was 01-20-2012 at 01:45 AM ---------- First version released, yay for me http://freddy1990.com/index.php?page=product&name=httpbox Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 22, 2012 Share Posted January 22, 2012 looks really cool, i could see where that could be usefull in alot of cool projects, you would need a good internet company tho to host a website with any traffic as most have a bandwidth-limit and have pretty slow upload speeds, but this could be usefull for accessing files and stuff =) i like it tho! Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 29, 2012 Author Share Posted January 29, 2012 So I've made the first step towards making this project a lot more interesting. From the start I've been wanting to develop a sort of dynamic server side scripting system, like PHP. And I've started implementing just that. It's still very basic, but I call it Delphi Server Pages, it's basically like PHP, but with Delphi code, and rather than mixing the code into HTML code, you just print the HTML code, I personally think that's a lot cleaner than some of the PHP coding horrors I've seen... A small example: The test.dsp file contains: begin PrintLn('<html><head></head><body>Hello World!</body></html>'); end. Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 30, 2012 Author Share Posted January 30, 2012 (edited) Heh, I've now switched out the heavyweight PaxCompiler engine (SCAR 4 engine) for DWS, now I can just drop the "begin...end.". This engine is a lot more suitable for this purpose and offers a very special language syntax, it's got elements from Delphi, Delphi Prism and JavaScript. EDIT: Apparently DWS allows me to make this exactly like PHP, in terms of the ability to mix it in with HTML, that's pretty funky <html> <head></head> <body> <p><?dsp Print('Hello World!'); ?></p> </body> </html> Edited January 30, 2012 by Freddy Quote Link to comment Share on other sites More sharing options...
nielsie95 Posted February 3, 2012 Share Posted February 3, 2012 That's exactly what DWS is meant for; it's pretty sweet! Quote Link to comment Share on other sites More sharing options...
mormonman Posted February 3, 2012 Share Posted February 3, 2012 So have you built any of the library yet? Are you gonna post docs? Quote Link to comment Share on other sites More sharing options...
FHannes Posted February 4, 2012 Author Share Posted February 4, 2012 No, I'm currently directing most of my efforts at SCAR, but I'm hoping to have 0.3 with basic dsp support out soon. Docs will go up here: http://httpbox.freddy1990.com/ Quote Link to comment Share on other sites More sharing options...
FHannes Posted February 9, 2012 Author Share Posted February 9, 2012 I've released HttpBox 0.3 with the initial basic DSP support. I'm currently working on documenting the functions that came with DWScript before actually adding any new ones to the system. Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted February 9, 2012 Share Posted February 9, 2012 Man you've been busy. Quote Link to comment Share on other sites More sharing options...
FHannes Posted February 15, 2012 Author Share Posted February 15, 2012 (edited) Been documenting some functions every now and then... When I'm done with all the ones currently available, I'm adding more stuff: http://httpbox.freddy1990.com/index.php?title=Category:Functions It's not progressing quite as fast as I'd like, but I'm currently spending tons of development time on SCAR. Edited February 15, 2012 by Freddy Quote Link to comment Share on other sites More sharing options...
FHannes Posted March 19, 2012 Author Share Posted March 19, 2012 I've pushed out version 0.04 of HttpBox. I've been very busy with rl stuff and SCAR lately, so the list of changes isn't quite that impressive. But I'm also still working on documenting the functions for the DSP scripting. This version is my first release of a 64-bit application. Changelog: HttpBox 0.04: + Ported to 64-bit + New DSP functions: VarGET, VarPOST + DSP powered by DWS 2.3 Rev 1355 Download: http://freddy1990.com/index.php?page=product&name=httpbox Documentation: http://httpbox.freddy1990.com/index.php?title=HttpBox_Documentation Quote Link to comment Share on other sites More sharing options...
FHannes Posted December 23, 2012 Author Share Posted December 23, 2012 I've released an updated copy to HttpBox, not many changes, just a few new DSP functions and the latest version of DWScript. I figured it was time for a maintenance update. I'll probably be adding some more stuff once my finals are over. Quote Link to comment Share on other sites More sharing options...
XRumer23smise Posted October 14 Share Posted October 14 Descubra os jogos online no BigWin Casino. Aproveite bonus e promocoes em uma plataforma segura e acessivel. Quote Link to comment Share on other sites More sharing options...