redef class Sys
var iface: String is lazy do
- srand
- return "localhost:{10000+20000.rand}"
+ var testid = "NIT_TESTING_ID".environ.to_i
+ return "localhost:{10000+testid}"
end
var fs_path: String = getcwd / "../lib/nitcorn/examples/www/hello_world/dir" is lazy
system "curl -s '{iface}/simple_answer?i=0123&s=asdf'"
system "curl -s {iface}/simple_answer --data 'i=0123&s=asdf'"
system "curl -s {iface}/simple_answer --cookie 'i=0123; s=asdf'"
+ system "curl -s {iface}/simple_answer --get --data-urlencode 's=b b'"
system "curl -s {iface}/params_answer/0123/asdf"
system "curl -s {iface}/params_answer/0123/"