Scriptlets
Not logged in.
Login?
Language:
javascript
ruby
php
python
# Ruby powered by JRuby # # Like a typical Rack environment with req and resp objects. # Make HTTP requests with: RestClient.new.request(url, headers, post_params) -> Response object # # Example (try uncommenting): # resp.write "Hello! Your name: #{req.params['name']}
" + RestClient.new.get('http://example.com')
// PHP 5.2 powered by Quercus // // Like a typical PHP environment. $_GET, $_POST, echo ... everything you need. // Make HTTP requests with: fetch($url, $post_params) -> Array(code, body) // // Example (try uncommenting): // echo "Hello! Your name: {$_GET['name']}
".fetch('http://example.com')[1];
# Python 2.5 powered by Jython # # A WSGI environ with WebOb req and resp objects. # Make HTTP requests with: RestClient().request(url, headers, post_params) -> Response # # Example (try uncommenting): # resp.write("Hello! Your name: %s
%s" % (req.GET.get('name'), RestClient().get('http://example.com')))
// JavaScript powered by Rhino // // Jack (http://tinyurl.com/adqv8w) app environment with req and resp objects. // Make HTTP requests with: fetch(url, post_params) -> [code, body] // // Example (try uncommenting): // resp.write("Hello! Your name: "+req.GET('name')+"
"+fetch('http://example.com')[1]);
Use regular textarea
to get a URL that will run this code.