From: Gisle Vanem <gisle.vanem@gmail.com>
To: location@lists.ipfire.org
Subject: Problem in urllib?
Date: Tue, 30 Mar 2021 11:08:47 +0200 [thread overview]
Message-ID: <0fbb7485-52fd-5bfa-e55d-d07111700be4@gmail.com> (raw)
[-- 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
next reply other threads:[~2021-03-30 9:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-30 9:08 Gisle Vanem [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0fbb7485-52fd-5bfa-e55d-d07111700be4@gmail.com \
--to=gisle.vanem@gmail.com \
--cc=location@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox