Simultaneous connections

Discussion in 'Python' started by datbenik, Jan 20, 2006.

  1. datbenik

    datbenik Guest

    How can i write a program that supports simultaneous multipart
    download. So i want to open multiple connections to download one file.
    Is this possible. If so, how?
    datbenik, Jan 20, 2006
    #1
    1. Advertising

  2. datbenik

    datbenik Guest

    So this isn't possible with the urllib or with the urllib2?
    datbenik, Jan 20, 2006
    #2
    1. Advertising

  3. datbenik schrieb:
    > How can i write a program that supports simultaneous multipart
    > download. So i want to open multiple connections to download one file.
    > Is this possible. If so, how?


    In case of HTTP, the needed header is "Range". So I guess its all a
    matter of making n connections, and specifying total_size/n consecutive
    ranges in each request.

    But be aware that the range is possibly nor supported - no idea how that
    is communicated.

    Googling reveals this:

    http://linux.duke.edu/projects/urlgrabber/

    Use that, or look at it and reprogram it accordingly.

    Diez
    Diez B. Roggisch, Jan 21, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. George Ter-Saakov
    Replies:
    0
    Views:
    939
    George Ter-Saakov
    Jun 24, 2003
  2. Ronnie
    Replies:
    1
    Views:
    525
    Roger Oshaug
    Dec 16, 2004
  3. Replies:
    10
    Views:
    1,492
    Roedy Green
    Oct 19, 2005
  4. Replies:
    2
    Views:
    6,270
  5. jobs
    Replies:
    2
    Views:
    873
Loading...

Share This Page