Posts: 9
Joined: Dec 2005
Reputation:
0
i'm trying to download partial content using the range header, but from what i understand python 2.3 has a bug that causes the script to stop on a 206 error. i saw an example of how to get around this using urllib, by making a class of urllib and overwritting that error with a pass. i'm new to python so i'm not sure how to do the same thing with urllib2.
if anyone has done partial content downloading with urllib2 could you post a little sample?
thanks very much...
hexp.
Posts: 9
Joined: Dec 2005
Reputation:
0
found it, i missed the fact that you can add more than 1 handler when building an opener.
i.e.
myopener = urllib2.build_opener(httprangehandler,auth_handler)
sorry about posting, seems as soon as you post a question, the answer some how jumps out in front of you...
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
affini, you need to create an asp page to post to.
Posts: 3,746
Joined: May 2004
Reputation:
20
Livin
Posting Freak
Posts: 3,746
hexperience / nuka
any other help you can give?
I'm not an expert but I play one at work.
Posts: 3,746
Joined: May 2004
Reputation:
20
Livin
Posting Freak
Posts: 3,746
i found the issue... wrong commands being sent to server. it was not a python issue at all.
thanks for the help guys!
I'm not an expert but I play one at work.
Posts: 4
Joined: May 2008
Reputation:
0
I answer myself ;-)
Yes, it's solved. Last revision contains last libcurl.dll.
So, GET with ranges problems is ok now.