title: wget - only output redirect url but no download
body: <p>I have a download link to a large file.
  You need to be logged in to the site, so a cookie is used.
  The download link redirects to another URL.
  I'm able to download the file with wget but I only want the output of the "real" direct download link.
  wget does exactly this before starting the download</p>
  
  <pre><code>Location: https://foo.com/bar.zip [following]
  </code></pre>
  
  <p>Is there a way to make wget stop and not actually downloading the file?
  The solutions I found recommend redirecting to dev/null but this would still download the file. What I want is wget following the redirects but not actually starting the download.</p>