cyberious / puppet-pget

pget - Module for downloading files onto a Windows system
Apache License 2.0
4 stars 10 forks source link

doesn't honour "Content-Disposition: attachment; filename=" #15

Open drthornt opened 9 years ago

drthornt commented 9 years ago

if I pget this:

http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=dotnetnuke&DownloadId=1458706&FileTime=130770523350700000&Build=21031

I get a file called "release" on my file system to spite seeing this in the response header:

HTTP/1.1 200 OK Content-Type: application/zip Server: Microsoft-IIS/7.5 X-AspNetMvc-Version: 4.0 Content-Disposition: attachment; filename=DNN_Platform_07.04.01_Install.zip X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET X-FRAME-OPTIONS: SAMEORIGIN Server: CDS04 X-Content-Type-Options: nosniff Content-Length: 69947005 Expires: Wed, 23 Sep 2015 19:02:33 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Wed, 23 Sep 2015 19:02:33 GMT Connection: keep-alive Set-Cookie: ASP.NET_SessionId=nwejowi3pke4myodaoi4dgkh; domain=.codeplex.com; path=/; HttpOnly

cyberious commented 9 years ago

Could you provide a --debug --trace. This may be in part due to the redirect.

cyberious commented 9 years ago

If you could provide the code you are calling fully.