views:

1469

answers:

2

I would like to open a webpage from groovy, dump the specified webpage and eventually dump the webpage behind an anchor tag.

Does anybody has some sample code for this?

+2  A: 

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()

Mark Sailes
+2  A: 

here is a variation

println 'http://www.google.com'.toURL().text
danb
Damn, groovy is nice!
cjstehno