Live data from Hacker News

Http-server, a simple zero-configuration command line http server

github.com

21–29 of 29 posts

Re: Http-server, a simple zero-configuration command line http server

#21

I built a simple zero-configuration FTP server that runs in a browser some time ago ( http://ezyftpserver.com/ ). Been wondering if I should do the same with a HTTP server?

I tried to visit your site but got redirected to a "Java Downloads for all operating systems" page. I do have java installed, but somehow your site doesn't notice and I always get redirected. I'm using ubuntu+chrome. It's annoying. I might not ever use the site, but I can't even see it with javascript enabled.

Re: Http-server, a simple zero-configuration command line http server

#23
post #22

sigh Not another "Download this shell script over insecure HTTP and pipe it to sh" gimmick. Really? While http://news.ycombinator.com/item?id=2661209 is directly above this item on the front page? Have we learned nothing?

Like the documentation clearly states, there is nothing stopping you from:

     git clone git://github.com/nodejitsu/http-server.git
     cd http-server
     node bin/http-server
The curl installation is for npm, the node package manager, which is actually optional to use http-server

Re: Http-server, a simple zero-configuration command line http server

#24
post #16

Earlier quoted context omitted.

You are both these id? http://news.ycombinator.com/user?id=bitcoin http://news.ycombinator.com/user?id=bitcoins

it's marak squires, he has lots of sock puppet accounts.

http://twitter.com/#!/maraksquires/status/81591561602863104

Re: Http-server, a simple zero-configuration command line http server

#25

Earlier quoted context omitted.

it's marak squires, he has lots of sock puppet accounts.

http://twitter.com/#!/maraksquires/status/81591561602863104

That's lame. Take your downvotes and learn from them. Are you really that shallow?

Re: Http-server, a simple zero-configuration command line http server

#27
post #17
post #10

Earlier quoted context omitted.

I can think of use cases for wanting a quick simple, easy to configure http server. I can think of use cases for wanting to be able to serve >1,000 requests a second. I can't think of any that fall into both categories ... am I just lacking imagination?

once i wanted to serve a quick and dirty page of 200 thumbnails but python's HTTP server choked after a few people tried it concurrently. it's single threaded and just wouldn't hack it. luckily if you have twisted installed, you can run "twistd web -n -p PORT --path ." it's just as easy as the basic HTTP server but way faster.

This is a very good suggestion.
Post reply on HN