May-11-2019, 04:07 AM
The problem is definitely OS/environment specific. I just ran your code and it worked fine (OpenSuse 42.3).
Could you run a simple http server,
Could you run a simple http server,
Output:python -m http.server 2020 --bind 127.0.0.1
and make a request to it, using e.g. wget
?