7 ms·
These kind of projects are always so damn cool, but so utterly useless :(
by waxjar 14y ago
These kind of projects are always so damn cool, but so utterly useless :(
- seraph787 14y agocompletely disagree. Want to create a quick file server to test a design or an html page in a browser? Yes you could use python SimpleHTTP but python is a dependency that not all times we have access too.
- rachelbythebay 14y agoDo you have OpenSSL? I assume you do. Look at the man page for s_server and gape in awe at the -www -WWW and -HTTP options. The only catch is that you need to rig up a key, it being SSL and all. -nocert probably won't play nicely with your browser.
- zoodlenote 14y agoThat's cheating. http://lock.cmpxchg8b.com/certificate/hello.sh.html http://lock.cmpxchg8b.com/certificate/hello.sh.html (source: http://bit.ly/mGCVks http://bit.ly/mGCVks)
- alpb 14y agoSimplehttp Does the trick well enough. It exists on all Linux and OSX we use. I think he is implying that these projects won't have an industrial use.
- guilloche 14y agoI am also wondering the scenarios that I may need.
- ChuckMcM 14y agoI don't think they are useless. They keep the 'mystery' out of web servers. It is self limiting for folks when they see a piece of software and think of it as an impenetrable wall which cannot be breached or changed. I proposed an internal web api at work for some hardware that needed to call out and test an address against a database of known problems. The initial response was the pain of setting up the infrastructure of a web server just for this one thing, was "huge" except it isn't really huge, its like 12 lines of perl or python code. People need to know that you can do that to see the pocket web server as a neat solution.