title: Strange 410 http gone using python urllib not reproductible in wget
body: <p>I am using <code>urllib</code> in <code>python3</code> to fetch some images from my server:</p>
  
  <pre><code>import urllib.request
  import urllib.error
          try:
              resp = urllib.request.urlopen(url)
          except urllib.error.HTTPError as err:
              print("code "  + str(err.status) + " reason " + err.reason)
  </code></pre>
  
  <p>Running the file outputs a 410 HTTP Gone error,</p>
  
  <pre><code> $ python3.6 file.py 
  
  download: http://some_url.com/image.jpg
  code 410 reason Gone
  
  Traceback (most recent call last):
    File "file.py", line 32, in &lt;module&gt;
      image = image_from_url(url)
  </code></pre>
  
  <p>But I know for sure the image is there, since <code>wget</code> returns the image fine:</p>
  
  <pre><code>$ wget http://some_url.com/image.jpg
  
  --2019-10-11 16:24:05--  http://some_url.com/image.jpg
  Resolving some_url.com...
  Connecting to some_url.com|...|:80... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: 127891 (125K) [image/jpeg]
  Saving to: 'image.jpg'
  </code></pre>
  
  <p>Any ideas on what is causing this? Something on the server side? Is there some specific header that should go in the urllib request?</p>
  
  <p>Thank you</p>