I want to use a Groovy script to access a webpage. However, I am for the proxy.
Here's a test script that fails ...
println "Google page is..." println 'http://www.google.com'.toURL().text
Here's the conclusion ...
>groovy proxytester.groovy Google page is... Caught: java.net.ConnectException: Connection timed out: connect at checker.run(proxytester.groovy:2)
How to set proxy information in Groovy?
Chris source share