Connecting Tech Pros Worldwide Help | Site Map

urllib2 HTTPBasicAuthHandler and resumingbroken downloads

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 21st, 2008, 06:45 PM
Brendan
Guest
 
Posts: n/a
Default urllib2 HTTPBasicAuthHandler and resumingbroken downloads

Is there any way to resume an https file download using urllib2 and an
HTTPBasicAuthHandler?

  #2  
Old August 21st, 2008, 07:05 PM
Gabriel Genellina
Guest
 
Posts: n/a
Default Re: urllib2 HTTPBasicAuthHandler and resumingbroken downloads

En Thu, 21 Aug 2008 15:37:41 -0300, Brendan <brendandetracey@yahoo.com>
escribi�:
Quote:
Is there any way to resume an https file download using urllib2 and an
HTTPBasicAuthHandler?
You should provide the Range header (and probably If-Range too) in the
request.
http://www.w3.org/Protocols/rfc2616/....html#sec14.35

--
Gabriel Genellina

  #3  
Old August 22nd, 2008, 12:05 PM
Brendan
Guest
 
Posts: n/a
Default Re: urllib2 HTTPBasicAuthHandler and resumingbroken downloads

On Aug 21, 3:57*pm, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:
Quote:
En Thu, 21 Aug 2008 15:37:41 -0300, Brendan <brendandetra...@yahoo.com*
escribi :
>
Quote:
Is there any way to resume an https file download using urllib2 and an
HTTPBasicAuthHandler?
>
You should provide the Range header (and probably If-Range too) in the *
request.http://www.w3.org/Protocols/rfc2616/....html#sec14.35
>
--
Gabriel Genellina
Many thanks for your help.

Ug. Why does everything in Python boil down to reading rfcs? It really
slows us non computer science types down. I'll probably spend a day on
this instead of an hour. I did search the web but had no luck finding
an example, so I posted here as a last resort.
  #4  
Old August 22nd, 2008, 05:05 PM
Gabriel Genellina
Guest
 
Posts: n/a
Default Re: urllib2 HTTPBasicAuthHandler and resumingbroken downloads

En Fri, 22 Aug 2008 08:55:57 -0300, Brendan <brendandetracey@yahoo.com>
escribi�:
Quote:
On Aug 21, 3:57Â*pm, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:
Quote:
>En Thu, 21 Aug 2008 15:37:41 -0300, Brendan <brendandetra...@yahoo.com>
>Â*
>escribi :
>>
Quote:
Is there any way to resume an https file download using urllib2 and an
HTTPBasicAuthHandler?
>>
>You should provide the Range header (and probably If-Range too) in the Â*
>request.http://www.w3.org/Protocols/rfc2616/....html#sec14.35
>
Ug. Why does everything in Python boil down to reading rfcs? It really
slows us non computer science types down. I'll probably spend a day on
this instead of an hour. I did search the web but had no luck finding
an example, so I posted here as a last resort.
The easy way is to use wget...
If you want a Python example, go to the Python cookbook:
http://code.activestate.com/recipes/langs/python/
enter "resume download" in the search box, and the very first recipe shows
how to use the Range header.

--
Gabriel Genellina

  #5  
Old August 25th, 2008, 12:45 PM
Brendan
Guest
 
Posts: n/a
Default Re: urllib2 HTTPBasicAuthHandler and resumingbroken downloads

On Aug 22, 1:59*pm, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:
Quote:
En Fri, 22 Aug 2008 08:55:57 -0300, Brendan <brendandetra...@yahoo.com*
escribi :
>
>
>
>
>
Quote:
On Aug 21, 3:57*pm, "Gabriel Genellina" <gagsl-...@yahoo.com.ar>
wrote:
Quote:
En Thu, 21 Aug 2008 15:37:41 -0300, Brendan <brendandetra...@yahoo.com*
*
escribi :
>
Quote:
Quote:
Is there any way to resume an https file download using urllib2 and an
HTTPBasicAuthHandler?
>
Quote:
Quote:
You should provide the Range header (and probably If-Range too) in the*
request.http://www.w3.org/Protocols/rfc2616/....html#sec14.35
>
Quote:
Ug. Why does everything in Python boil down to reading rfcs? It really
slows us non computer science types down. I'll probably spend a day on
this instead of an hour. I did search the web but had no luck finding
an example, so I posted here as a last resort.
>
The easy way is to use wget...
If you want a Python example, go to the Python cookbook:http://code.activestate.com/recipes/langs/python/
enter "resume download" in the search box, and the very first recipe shows *
how to use the Range header.
>
--
Gabriel Genellina- Hide quoted text -
>
- Show quoted text -
Thanks for the link. Much appreciated.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.