cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
Choose Language Hide Translation Bar
View Original Published Thread

This POST form of Multi download, download the result of the same file name, constantly covered, how to solve?

lala
Level VIII

Multi downloads with JMP 17 get downloaded files, but all files with the same name, and only one last downloaded file.

Thanks!

2024-04-16_14-53-12.png

3 REPLIES 3
lala
Level VIII


回复: This POST form of Multi download, download the result of the same file name, constantly covered, how to solve?

urls = {};
u = "https://apphq.ip.com/w1/api/index.php";
h = ["Content-Type" => "application/x-www-form-urlencoded; charset=UTF-8"];
d0 = Current Data Table();
For( j = 1, j <= 3, j++,
	gp = d0[j, "IP"];
	Insert Into(
		urls,
		"a=GetMainMonitor_Trend_w30&Money=0&apiv=w36&c=StockL2Data&StockID=" || gp ||
		"&PhoneOSNew=1&"
	);
);

requests = New Multi HTTP Request();
s0 = N Items( urls );
For( i = 1, i <= s0, i++,
	Try( rs = New HTTP Request( URL( u ), Method( "POST" ), JSON( urls[i] ), Headers( h ) ) );
	requests << Add( rs );
);
da = requests << Download( "show progress", "detailed" );

2024-04-16_14-58-35.png

jthi
Super User


Re: This POST form of Multi download, download the result of the same file name, constantly covered, how to solve?

lala
Level VIII


Re: This POST form of Multi download, download the result of the same file name, constantly covered, how to solve?

OK、Thanks!

I forgot all about it.

 

requests<<Add(rs,"test"||char(i));