Skip to content

Instantly share code, notes, and snippets.

@kiy0taka
Created November 27, 2010 13:35
Show Gist options
  • Save kiy0taka/717897 to your computer and use it in GitHub Desktop.
Save kiy0taka/717897 to your computer and use it in GitHub Desktop.
[OSX] groovy -l 8080 sayserve
println "HTTP/1.0 200 OK"
"say ${URLDecoder.decode(line.split(' ')[1])}".execute().waitFor()
'success'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment