Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkrecny/http-dynamic
An http interface to multi-language script input, execution and output
https://github.com/mkrecny/http-dynamic
Last synced: 13 days ago
JSON representation
An http interface to multi-language script input, execution and output
- Host: GitHub
- URL: https://github.com/mkrecny/http-dynamic
- Owner: mkrecny
- Created: 2011-07-20T00:54:11.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-07-21T00:23:46.000Z (over 13 years ago)
- Last Synced: 2024-07-31T14:09:27.139Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# http-dynamic -- execute any script over HTTP
## Note
This is an experiment. It is not performant! Do not use in production.
## Usage
Start http-dynamic
./lib/http-dynamicPut scripts (ruby, python, php) in the ./scripts directory:
scripts/hello.rb
puts 'hello from ruby'
puts 'arguments are '+ ARGV[0]
exit()And execute over HTTP:
curl localhost:8080/hello.rb?foo=bar
Should output:
hello from ruby
arguments are foo=bar
(all data written to stdout will be buffered and returned to HTTP client when script exits)