I’m looking to download a zip file from a website. I can do that using something like this:
invoke-webrequest "$sourceURI" -outfile "$destinationfilename"
however, I would like to see the headers.
I know I can capture the output in a variable like so:
$output = invoke-webrequest "$source$dailyfilename" -outfile "$destination$dailyfilename"
But it is always empty when I use outfile.
So if I skip the outfile, how do I get the content stream into a file?
Thx!