How to do a HTTP HEAD request from the windows command line?

Henning picture Henning · Oct 20, 2008 · Viewed 101.4k times · Source

What's the best way (or tool) on the Windows (Vista) command line to get size and modification time for a file on a remote webserver, without downloading it?

Answer

Tomalak picture Tomalak · Oct 20, 2008

There is a Win32 port of wget that works decently.

PowerShell's Invoke-WebRequest -Method Head would work as well.