Re: error reading api with urllib

2015-12-17 Thread Simian
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

Re: error reading api with urllib

2015-12-15 Thread Simian
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/mailm