Code: Select all
urllib.request.Request(
'https://www.example.org/myfile.zip',
headers={...}
)
< /code>
Und der nachfolgende Download funktioniert gut. Ich muss 'Host'
Code: Select all
urllib.request.Request(
"http://123.456.100.1/myfile.zip",
headers={'Host': 'www.example.org'}
)
Code: Select all
urllib.error.URLError: