1
$.ajax({
                type: "GET",
                url: /myfile.exe,
                success: function(datadown) {
                    dataup.push(datadown);
                    async: false,

I am creating a little download manager browser based , I know javascript is single threaded and it will not support multiple process at once . There is any way to do this in javascript (I am using Jquery)

The current method is working . It is a single threaded file download and it is slow .

I need to download the same file using multiple http connections (Just like normal download managers do )

Vishnu
  • 741
  • 1
  • 7
  • 24
  • Is this an actual snippet from your code? It has syntax errors. – musicnothing Sep 06 '13 at 19:01
  • "async: false" makes it "slow", and threads don't have anything to do with it. if you want parallel connections, use Range headers to grab chunks of the file, if your server supports it. – dandavis Sep 06 '13 at 19:03
  • This is not actual code snippet ,Just show how I am trying to do the stuff . Using Jquery $.ajax(). – Vishnu Sep 06 '13 at 19:08

2 Answers2

0

I need to download the same file using multiple http connections

What you want to do is not possible.

Community
  • 1
  • 1
Erik Philips
  • 53,428
  • 11
  • 128
  • 150
  • There is no Alternate method ? Any cross platform method to do this ? Multithreaded file transfer/ Download using Normal web browser ? – Vishnu Sep 06 '13 at 20:48
0

As long as you can specify the HTTP Range header you should be fine

See Can I use the HTTP range header to load partial files "on purpose"?

Community
  • 1
  • 1
Anon
  • 51
  • 1
  • How HTTP Range header will increase the file download speed ? I think its supports splitting the file and download . – Vishnu Sep 06 '13 at 20:43
  • It returns only the partial content , I need to Know how to download Multiple parts of content same time using Jquery or any other method . Through a web browser – Vishnu Sep 06 '13 at 20:45