浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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
posted on 2012-06-28 14:59  lexus  阅读(388)  评论(0编辑  收藏  举报