发布时间:2022-08-09 文章分类:编程知识 投稿人:赵颖 字号: 默认 | | 超大 打印

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