<br><div><div>i want to write a multiple threads download program to practice my  MT knowledge, <br>1)cut the big iso file into 20 parts<br>2)start 20 process with threading and queue module to download<br>3)combine the 20 parts into one iso file.<br><br>if i have cut it into 20 parts ,how can i download the first part of it ?<br><br>it is target to practice the threading and queue module .  <span id="_editor_bookmark_start_0" style="display: none; line-height: 0px;">‍</span></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Chris Angelico";<rosuav@gmail.com>;</div><div><b>发送时间:</b> 2014年7月23日(星期三) 晚上11:58</div><div><b>收件人:</b> </div><div><b>抄送:</b> "python-list"<python-list@python.org>; <wbr></div><div><b>主题:</b> Re: how to download special range content with requests in python?</div></div><div><br></div>On Wed, Jul 23, 2014 at 7:44 PM, 水静流深 <1248283536@qq.com> wrote:<br>> url='http://debian.cites.illinois.edu/pub/debian-cd/7.6.0/amd64/iso-cd/debian-7.6.0-amd64-CD-1.iso'<br>> import requests<br>> r = requests.get(url).read(0,1000)  ‍<br>><br>> why i can not download special range(from 0 to 10000)  content with requests<br>> in python‍?<br><br>Looking into my crystal ball, I think you're trying to have this send<br>the Range header. If that's the case, then there's no way you can do<br>that with the read() method; you have to incorporate that into the<br>original request, and then just read everything the server sends you.<br><br>If that's not what you're talking about, please explain further,<br>preferably demonstrating what you want to happen at the HTTP level.<br><br>ChrisA<br>-- <br>https://mail.python.org/mailman/listinfo/python-list<br></div>