Questions about "Multi HTTP Request" of JMP17?Hello!
JMP17 added "Multi HTTP Request"
Sample code: Do the three download tasks download at the same time, or do the next tasks download when one is complete?
Will the overall download time be reduced by using this feature?
urls =
{"http://cdimage.ubuntu.com/lubuntu/releases/20.04.3/release/lubuntu-20.04.3-desktop-amd64.iso",
"http://downloads.sourceforge.net/clonezilla/clonezilla-live-2.7.3-19-amd64.iso",
"https://download.manjaro.org/xfce/21.1.0/manjaro-xfce-21.1.0-210817-linux513.iso"};
requests = New Multi HTTP Request();
For( i = 1, i <= N Items( urls ), i++,
request = New HTTP Request( Method( "GET" ), URL( urls[i] ) );
requests << Add( request );
);
http_requests = requests << Get Requests();
data = requests << Download( "show progress", "detailed" );
Show( requests << Has Error );
For( i = 1, i <= N Items( http_requests ), i++,
Show( http_requests[i] << Get Mime Type() )
);Automation and ScriptingWindowsRe: Questions about "Multi HTTP Request" of JMP17?They happen at the same time.
So the time it takes for it to finish is longest time of the 3.
If first iso takes 2 minutes, the second 1 minute and the 3rd 3 minutes, then the total time to for HTTP Request to download is 3 minutes.