On 01.03.06 20:18:16, Chris Lawrence wrote: > On 3/1/06, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > > On 01.03.06 17:52:25, Chris Lawrence wrote: > > > I can't duplicate this problem here; perhaps it was an intermittent > > > problem with bugs.debian.org > > > > No it's not. > > > > > or you have proxy issues... > > > > No proxy here. > > Strange.
Got some more here: It seems that the problem is the redirect that is done when getting packages.debian.org/<package>. I found that urlutils.urlopen and urlutils.open_url were called only with that URL, even though the finally returned file-like object (called page in get_available_versions) returns the following as url [1]: http://pdo.debian.net/cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=<package> So I checked with curl --compress -v http://pdo.debian.net/reportbug and I got a 302. Now I couldn't find any place in urlutils where you handle that HTTP code, so I guess this is urllib2. The problem then is that the request for the new url (the long one) doesn't get the Accept-Encoding header, but the result is still put into a gzip object. I'm still working on a small test app that uses urllib2 to retrieve the page to check wether it really is the culprit... Andreas -- You are only young once, but you can stay immature indefinitely. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]