> I have an url which redirects the client to another url. If I paste
> the url into a browser, it works fine. If I open it via
Any redirection is setup using either of the 301, 302, 303, 307 return codes of
HTTP. Atleast, thats what standard determines.
> File "C:\Python25\lib\urllib2.py", li
Achim Domma wrote:
> urllib2.HTTPError: HTTP Error 400: Bad Request
>
> I'm using Python 2.5.1 and Google did not help. Any hint on how to
> fix or debug this problem?
Use e. g. wireshark to look at the raw stream data and check if the
request is malformed.
Regards,
Björn
--
BOFH excuse #12
Hi,
I have an url which redirects the client to another url. If I paste
the url into a browser, it works fine. If I open it via
urllib2.urlopen() I get the following error:
Traceback (most recent call last):
File "...\crawlRawDocuments.py", line 16, in
body = urlopen(url).read()
File "C: