Groovy web console

subscribe to the feed Subscribe
to this
site

pp

Published 6 days ago by oo with tags asdfasdf
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def url = new URL("http://someplace.com/doot?value=11111")
def params = url.getQuery().split("&");
println(params)
for(String param : params) {
    def parts = param.split("=");
    println(parts)
    if(parts[0] == "value") {
        println(parts[1])
    }
}