using a proxy
Behind a company firewall it only works with a proxy set. I would propose setting it directly in the script and commenting it out:
System.properties.putAll( ["http.proxyHost":"proxyhost.example.com",
"http.proxyPort":"8080",
"http.proxyUserName":"domain\\username",
"http.proxyPassword":"mypasswd",
"https.proxyHost":"proxyhost.example.com",
"https.proxyPort":"8080",
"https.proxyUserName":"domain\\username",
"https.proxyPassword":"mypasswd"])
So users can use your script more easily (in their companies - what do you think? Nice work so far!
Regards, Sven.
ah, by the way, I didn't use grab but I found that the script was dependent on 'parboiled-core-1.0.2.jar' and 'parboiled-core-1.0.2.jar'. Was that mentionend anywhere?
Thanks for raising this @svenson2703
As for proxy, i would instead set it in command line groovy -Dhttp.proxyHost="proxyhost.example.com" etc... https://raw.github.com/fix/Groc/master/groc.groovy or better set it in your JAVA_OPTS, you may use these settings for other java apps.
As for parboiled lib, yes @Grab is getting also the dependencies and pegdown depends on parboiled lib (among other stuff).
Ok, thx, and now that we've talked about, it's therefore well documented ;-)