One-line shell script server for testing your AJAX and HTTP code

Wednesday, April 1st, 2009 by Jason

Here is how to make a very simple web server with a very simple shell script on a GNU or Unix system such as OS X. I have found it to be ideal for quick tests and debugging sessions with AJAX code and tools like Python’s urllib2.

The idea is to run an infinite loop which calls socat to return static files to the browser.

Read the rest of this entry »

Posted in Free Software | No Comments »