title: Python. Get file date and time (timestamp) from HTTP server
body: <p>I need to use a Python program to download a file from an HTTP server while preserving the original timestamp of the file creation.</p>
  
  <p>Accordingly, two questions:</p>
  
  <ol>
  <li>How to get file date from HTTP server using Python 3.7?</li>
  <li>How to set this date for the downloaded file?</li>
  </ol>