Connect to URL and dump webpage in Groovy - Stack Overflow

Connect to URL and dump webpage in Groovy - Stack Overflow


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

here is a variation

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

你可能感兴趣的:(overflow)