<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Questions about &amp;quot;Multi HTTP Request&amp;quot; of JMP17? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/557767#M77136</link>
    <description>&lt;P&gt;They happen at the same time.&lt;/P&gt;
&lt;P&gt;So the time it takes for it to finish is longest time of the 3.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 12:58:46 GMT</pubDate>
    <dc:creator>bryan_boone</dc:creator>
    <dc:date>2022-10-19T12:58:46Z</dc:date>
    <item>
      <title>Questions about "Multi HTTP Request" of JMP17?</title>
      <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/557655#M77130</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;JMP17 added "Multi HTTP Request"&lt;BR /&gt;Sample code: Do the three download tasks download at the same time, or do the next tasks download when one is complete?&lt;BR /&gt;Will the overall download time be reduced by using this feature?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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 &amp;lt;= N Items( urls ), i++,
	request = New HTTP Request( Method( "GET" ), URL( urls[i] ) );
	requests &amp;lt;&amp;lt; Add( request );
);
http_requests = requests &amp;lt;&amp;lt; Get Requests();
data = requests &amp;lt;&amp;lt; Download( "show progress", "detailed" );
Show( requests &amp;lt;&amp;lt; Has Error );
For( i = 1, i &amp;lt;= N Items( http_requests ), i++,
	Show( http_requests[i] &amp;lt;&amp;lt; Get Mime Type() )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:00:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/557655#M77130</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-06-09T16:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about "Multi HTTP Request" of JMP17?</title>
      <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/557767#M77136</link>
      <description>&lt;P&gt;They happen at the same time.&lt;/P&gt;
&lt;P&gt;So the time it takes for it to finish is longest time of the 3.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 12:58:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/557767#M77136</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2022-10-19T12:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about "Multi HTTP Request" of JMP17?</title>
      <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/558431#M77172</link>
      <description>&lt;P&gt;How can this form of circular download be modified to parallel download?&lt;BR /&gt;The original code was to download the data in the same format on different dates, and merge it into the first table on each download.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now can you download it side-by-side as Multi HTTP Request of JMP17, but finally merge it into a data table&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;urls = {};
j = 1;
dt = Current Data Table();
m = 0;
For( j = 1, j &amp;lt;= N Row( dt ), j++,
	a = Char( dt[j, "date"] );
	u = "http://dd.gubit.xx/longhubang/?t=-1&amp;amp;date=" || a || "&amp;amp;page=1";
	Insert Into( urls, u );
);

requests = New Multi HTTP Request();
For( i = 1, i &amp;lt;= N Items( urls ), i++, 

	d1 = Open( urls[i], HTML Table( 1, Column Names( 1 ), Data Starts( 2 ) ) );
	
	requests &amp;lt;&amp;lt; Add( d1 );//??
);
http_requests = requests &amp;lt;&amp;lt; Get Requests();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Oct 2022 13:32:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/558431#M77172</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-10-20T13:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about "Multi HTTP Request" of JMP17?</title>
      <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/558432#M77173</link>
      <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 13:29:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/558432#M77173</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-10-20T13:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about "Multi HTTP Request" of JMP17?</title>
      <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/558436#M77174</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;The picture is too big? Cannot upload as a texture.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;The original loop mode of the code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table(); m=0;
For( j = 1, j &amp;lt;= N Row( dt ), j++,
	a = Char( dt[j, "date"] );
	u = "http://dd.gubit.xx/longhubang/?t=-1&amp;amp;date=" || a || "&amp;amp;page=1";
	d1 = Open( u, HTML Table( 1, Column Names( 1 ), Data Starts( 3 ) ) );
	Current Data Table( d1 );
	New Column( "date" );
	d1[1 :: N Row( d1 ), "date"] = Num( a );
	m = m + 1;
	If( m == 1,
		d2 = d1;
		d2 &amp;lt;&amp;lt; setName( "dt2" );
	,
		Current Data Table( d2 );
		d2 &amp;lt;&amp;lt; Concatenate( Data Table( d1 ), Append to first table );
		Close( d1, nosave );
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 13:41:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/558436#M77174</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-10-20T13:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about "Multi HTTP Request" of JMP17?</title>
      <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/562871#M77594</link>
      <description>&lt;P&gt;For the MultiHTTPRequest part of your question, you probably want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;data = requests &amp;lt;&amp;lt; Send();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;instead of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;http_requests = requests &amp;lt;&amp;lt; Get Requests();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data = requests &amp;lt;&amp;lt; Send() sends the requests to the web service and returns a list of responses.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;data = requests &amp;lt;&amp;lt; Send();
For(I = 1, I &amp;lt;= N Items(data), I++,
//data[I] corresponds to the return value of request[I]
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 13:52:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Questions-about-quot-Multi-HTTP-Request-quot-of-JMP17/m-p/562871#M77594</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2022-11-01T13:52:58Z</dc:date>
    </item>
  </channel>
</rss>

