5
down vote
accepted

This is a good example

http://groovy.codehaus.org/Simple+file+download+from+URL

Basically you want to do something like

def data = new URL(feedUrl).getText()

link|edit|flag

add comment


up vote
14
down vote

here is a variation

println 'http://www.google.com'.toURL().text

发表回复