title: How can I fetch the last-modified value of a remote file?
body: <p>I'd like to know the last-modifed date of a remote file (defined via url).<br>
  And only download it, if it's newer than my locally stored one.  </p>
  
  <p>I managed to do that for local files, but can't find a solution to do that for remote files (without downloading them)  </p>
  
  <p>working:  </p>
  
  <pre><code>Dim infoReader As System.IO.FileInfo = My.Computer.FileSystem.GetFileInfo("C:/test.txt")
  MsgBox("File was last modified on " &amp; infoReader.LastWriteTime)  
  </code></pre>
  
  <p>not working:</p>
  
  <pre><code>        Dim infoReader As System.IO.FileInfo = My.Computer.FileSystem.GetFileInfo("http://google.com/robots.txt")
          MsgBox("File was last modified on " &amp; infoReader.LastWriteTime)  
  </code></pre>
  
  <p>I'd love to have a solution which will only have to download the headers of a file</p>