Native alternative to wget in Windows PowerShell?
Problem
I know I can download and install the aformentioned library (wget for Windows), but my question is this: In Windows PowerShell, is there a native alternative to ? I need simply to retrieve a file from a given URL with HTTP GET. For instance:
Error Output
wget http://www.google.com/
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Native alternative to wget in Windows PowerShell?
Here's a simple PS 3.0 and later one-liner that works and doesn't involve much PS barf: Note that: is an alias for Invoke-WebRequest returns a HtmlWebResponseObject, which contains a lot of useful HTML parsing properties such as Links, Images, Forms, InputFields, etc., but in this case we're just using the raw Content The file contents are stored in memory before writing to disk, making this approach unsuitable for downloading large files On Windows Server Core installations, you'll need to wri…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix