How to do it

We proceed as follows:

  1. Execute the script for the recipe.  It contains the following code:
util = URLUtility(const.ApodEclipseImage())
print("The content type is: " + util.contenttype)
  1. With the following result:
Reading URL: https://apod.nasa.gov/apod/image/1709/BT5643s.jpg
Read 171014 bytes
The content type is: image/jpeg