urllib2 HTTPBasicAuthHandler and resumingbroken downloads

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brendan

    #1

    urllib2 HTTPBasicAuthHandler and resumingbroken downloads

    Is there any way to resume an https file download using urllib2 and an
    HTTPBasicAuthHa ndler?
  • Gabriel Genellina

    #2
    Re: urllib2 HTTPBasicAuthHa ndler and resumingbroken downloads

    En Thu, 21 Aug 2008 15:37:41 -0300, Brendan <brendandetrace y@yahoo.com>
    escribi�:
    Is there any way to resume an https file download using urllib2 and an
    HTTPBasicAuthHa ndler?
    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

    Comment

    • Brendan

      #3
      Re: urllib2 HTTPBasicAuthHa ndler and resumingbroken downloads

      On Aug 21, 3:57 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.a r>
      wrote:
      En Thu, 21 Aug 2008 15:37:41 -0300, Brendan <brendandetra.. .@yahoo.com 
      escribi :
      >
      Is there any way to resume an https file download using urllib2 and an
      HTTPBasicAuthHa ndler?
      >
      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.

      Comment

      • Gabriel Genellina

        #4
        Re: urllib2 HTTPBasicAuthHa ndler and resumingbroken downloads

        En Fri, 22 Aug 2008 08:55:57 -0300, Brendan <brendandetrace y@yahoo.com>
        escribi�:
        On Aug 21, 3:57 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.a r>
        wrote:
        >En Thu, 21 Aug 2008 15:37:41 -0300, Brendan <brendandetra.. .@yahoo.com>
        > 
        >escribi :
        >>
        Is there any way to resume an https file download using urllib2 and an
        HTTPBasicAuthHa ndler?
        >>
        >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:

        enter "resume download" in the search box, and the very first recipe shows
        how to use the Range header.

        --
        Gabriel Genellina

        Comment

        • Brendan

          #5
          Re: urllib2 HTTPBasicAuthHa ndler and resumingbroken downloads

          On Aug 22, 1:59 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.a r>
          wrote:
          En Fri, 22 Aug 2008 08:55:57 -0300, Brendan <brendandetra.. .@yahoo.com 
          escribi :
          >
          >
          >
          >
          >
          On Aug 21, 3:57 pm, "Gabriel Genellina" <gagsl-...@yahoo.com.a r>
          wrote:
          En Thu, 21 Aug 2008 15:37:41 -0300, Brendan <brendandetra.. .@yahoo.com 
           
          escribi :
          >
          Is there any way to resume an https file download using urllib2 and an
          HTTPBasicAuthHa ndler?
          >
          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- Hide quoted text -
          >
          - Show quoted text -
          Thanks for the link. Much appreciated.

          Comment

          Working...