-
Notifications
You must be signed in to change notification settings - Fork 344
Support for custom headers downloading files #171
Conversation
Some web sites require specific headers to allow you to download the setup program/zip Get-WebFile.ps1 Get-ChocolateyWebFile.ps1 Install-ChocolateyPackage.ps1 Install-ChocolateyZipPackage.ps1 Now support an options hashtable which allows use to specify individual headers.
Thanks - still discussing this in the other issue. :D |
This PR and the associated #164 haven't been updated in 7 months. Can we take this in as an advanced user improvement, that if someone down the line wants to simplify and improve, it can be part of a refactor? I think there is value in the code. I'd probably fixup the commits and amend the commit msg, to be inclusive of the others. |
I don't want them updated. When I roll these in, I branch to a new section, then I back that branch to the parent commit of this. Then I pull the changes. Then I rebase against all of the current. And if all goes well (usually does), I just merge back to master. It keeps the commit history a nice straight line. Don't think of commit history so linearly ;) |
your the boss ;) how do you back that branch to the parent commit and then pull the changes. I was just trying to assist as I know there are a ton of PRs and don't want to stifle progress for project newcomers who think they won't get merged. However I can help, let me know. |
For me, if someone is willing to keep their PR up to date, I'm okay with But when it takes awhile for a project team to evaluate PRs, it should not I don't want to create this same feeling on chocolatey as it doesn't really Does that make sense? On Friday, April 19, 2013, Rich Siegel wrote:
Rob http://devlicio.us/blogs/rob_reynolds |
As far as backing, you can find the parent commit a few ways... I just pull On Friday, April 19, 2013, Rich Siegel wrote:
Rob http://devlicio.us/blogs/rob_reynolds |
Need to start looking at this one for the release after this one. |
I think this additional options would make a great improvement to the affected helpers. Does the MoveToChoco label mean that it should be ported to the new chocolatey/choco repository? I could volunteer to do this if you wan't, just let me know. |
Yeah, I was slowly going through and tagging things we want to move. This particular thing is planned as we rewrite the helpers into compiled powershell cmd-lets. |
This was fixed in choco for 0.9.10 chocolatey/choco#332 |
Some web sites require specific headers to allow you to download the
setup program/zip
functions:
Get-WebFile.ps1
Get-ChocolateyWebFile.ps1
Install-ChocolateyPackage.ps1
Install-ChocolateyZipPackage.ps1
now support an options hashtable which allows use to specify individual
headers.
The options hash table structure allows for future settings to be flowed through the application without updating multiple method signatures.
The structure at the moment is:
In the future you could use the options to pass down cookies by domain for example