Skip to content

Instantly share code, notes, and snippets.

@anak10thn
Created September 19, 2012 04:23
Show Gist options
  • Save anak10thn/3747685 to your computer and use it in GitHub Desktop.
Save anak10thn/3747685 to your computer and use it in GitHub Desktop.
web server phantomJS
#!/bin/phantomjs
var server, service;
server = require('webserver').create();
service = server.listen(3333, function (request, response) {
response.statusCode = 200;
response.write('<html><body>Hello!</body></html>');
response.close();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment