public inbox for location@lists.ipfire.org
 help / color / mirror / Atom feed
* Problem in urllib?
@ 2021-03-30  9:08 Gisle Vanem
  2021-03-30  9:27 ` Michael Tremer
  0 siblings, 1 reply; 5+ messages in thread
From: Gisle Vanem @ 2021-03-30  9:08 UTC (permalink / raw)
  To: location

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

I have a problem with he Python-module
and downloading a new .db-file. Used as:

   py -3 location.py --debug update

always returns:
   HTTP GET Request to location.ipfire.org
           URL: https://location.ipfire.org/databases/1/location.db.xz
           Headers:
                 If-modified-since: Tue, 30 Mar 2021 04:04:14 GMT
                 User-agent: location/0.9.4
   HTTP Response: 410
         Headers:
                 date: Tue, 30 Mar 2021 08:32:16 GMT
                 content-length: 282
                 content-type: text/html; charset=iso-8859-1
                 strict-transport-security: max-age=31536000; includeSubDomains; preload
                 connection: close
   https://location.ipfire.org/databases/ reported: HTTP Error 410: Gone
   Could not download a new database

But when using wget or Chrome, the above URL downloads just fine.

Maybe there is a problem with urllib in Windows' version of
Python 3.6.5? Or it's a server and CA-path problem since my
curl says:
  subject alt name(s) or common name do not match "location.ipfire.org"

(but a 'curl -k ..' works).

How can I solve this? I've tried several ca-bundle files to no avail.

-- 
--gv

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-01 11:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30  9:08 Problem in urllib? Gisle Vanem
2021-03-30  9:27 ` Michael Tremer
2021-03-30 11:14   ` Gisle Vanem
2021-04-01 10:09     ` Michael Tremer
2021-04-01 11:06       ` Gisle Vanem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox