2010-11-16, 19:05
I want my addon to be able to download a file from Sourceforge, but this requires following *two* HTTP redirects. With Python 2.7 urllib.urlopen() automatically follows the redirects and downloads the file. When I use the same code in XBMC it doesn't follow the redirects and just downloads the "HTTP/1.1 302" page.
Is there a difference in the version of Python used in XBMC (v2.4?) that causes the different behaviour and if so is there some setting I can tweak? Alternatively can anyone think of a way to get around the problem that doesn't involve parsing the HTML response and doing the redirects manually?
Thanks,
JR
Is there a difference in the version of Python used in XBMC (v2.4?) that causes the different behaviour and if so is there some setting I can tweak? Alternatively can anyone think of a way to get around the problem that doesn't involve parsing the HTML response and doing the redirects manually?
Thanks,
JR