Re: error reading api with urllib
I added
except urllib.error.HTTPError as e:
print('HTTP Errpr')
print('Error code: ', e.code)
to my try and I recieve...
400: ('Bad Request',
'Bad request syntax or unsupported method'),
but processing the string with a browser works fine.
Simi
--
https://mail.python.org/mailman/listinfo/python-list
Re: error reading api with urllib
I will try adding the get. I have not used curl. I also forgot to mention that the code runs against another server, though a slightly different version number. Thanks to you both. Simian -- https://mail.python.org/mailman/listinfo/python-list
