Connect to URL and dump webpage in Groovy

myHTMLlogin picture myHTMLlogin · Jun 3, 2009 · Viewed 45.6k times · Source

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?

Answer

danb picture danb · Jun 5, 2009

here is a variation

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