cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to move from signal modeling to system modeling at the first JMP Aerospace Analytics webinar. Register. June 18, 1 p.m. US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
lala
Level IX

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

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 IX

回复: 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 IX

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));

Recommended Articles