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
On Wed, Dec 16, 2015 at 3:12 PM, John Gordon wrote:
> In <9aa21642-765b-4666-8c66-a6dab9928...@googlegroups.com>
> simian...@gmail.com writes:
>
>> Bad Request
>> b''
>
>
> That probably means you aren't using one of the recognized methods
> (i.e. GET, POST, etc.)
>
> It doesn't look like you are
On Tue, Dec 15, 2015 at 7:46 PM, Simian wrote:
> 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
In <9aa21642-765b-4666-8c66-a6dab9928...@googlegroups.com> simian...@gmail.com
writes:
> Bad Request
> b''
That probably means you aren't using one of the recognized methods
(i.e. GET, POST, etc.)
It doesn't look like you are specifying one of these methods on your
Request object. Try doing t
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
Hi,
I am pretty new to python. I have a project reading an api with urllib. The
problem is I have to sections of code almost exactly the same. The first url
works great. They second one fails.
If I manually copy and paste the url in the browser ti works great.
The error I get back is...
Bad Re