Groc icon indicating copy to clipboard operation
Groc copied to clipboard

using a proxy

Open svenson2703 opened this issue 14 years ago • 2 comments

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?

svenson2703 avatar Dec 14 '11 13:12 svenson2703

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).

fix avatar Dec 14 '11 14:12 fix

Ok, thx, and now that we've talked about, it's therefore well documented ;-)

svenson2703 avatar Dec 14 '11 15:12 svenson2703