...
| Code Block |
|---|
def download(address)
{
def file = new FileOutputStream(address.tokenize("/")[-1])
def out = new BufferedOutputStream(file)
out << new URL(address).openConnectionopenStream().inputStream
out.close()
}
|
If proxy configuration is needed, call this:
...