-
Notifications
You must be signed in to change notification settings - Fork 342
Get-WebFileSimple, to remove gow dependency from JavaJDK package #224
base: master
Are you sure you want to change the base?
Conversation
- uses WebClient.DownloadFile to download files - allows adding cookies. (necessary for some sites, i.e. downloading java jdk from oracle) - allows ignoring invalid certificates (self-signed, etc)
Interesting. Why not make get-webfile work with these additions? |
I spent several hours trying that first, but couldn't get the cookies to On Sat, Dec 22, 2012 at 4:48 AM, Rob Reynolds [email protected]:
|
I don't think we should take this in. It needs to be reconciled with the existing one. |
https://github.com/chocolatey/chocolatey/blob/master/src/helpers/functions/Get-WebFile.ps1#L46 is this not doing cookie handling? I am not all that familiar with cookie handling in general. |
I do like the ignore cert switch in theory, but not in practice. A package author should not be sending consumers of the package to https sites that don't have valid certificates. I believe that is a call the end user should make, and question the authenticity of the underlying url. |
I agree. It would be better to alert the user and let them decide whether On Fri, Apr 19, 2013 at 7:17 AM, Rich Siegel [email protected]:
|
Interesting...we have made choco silent by default. This seems to go On Friday, April 19, 2013, Drew Burlingame wrote:
Rob http://devlicio.us/blogs/rob_reynolds |
good point. a flag would help, but not if the pkg was a dependency of On Fri, Apr 19, 2013 at 8:38 PM, Rob Reynolds [email protected]:
|
Its actually pretty simple, I have this in the environment setup bits, it On Saturday, April 20, 2013, Drew Burlingame wrote:
Rob http://devlicio.us/blogs/rob_reynolds |
Its not against the idea. Bypassing a tenet of an https request is the offense. This is a helper, and doesn't expose the ssl bypass capability to the cli/end user. If we wanted silent then it would need to work akin to: |
I would like to use the existing JavaJDK package, but can't because it depends on gow, which conflicts with other *nix tools I'm using. He only needs gow for wget. With this function, I'm able to download the file without wget.