cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

How can I change the Load Text File(url) method to Multi HTTP Request method?

This url already uses the Load Text File(url) to download the data and get the table.

url = "……" || gp || "&……";
txt = Load Text File( url );
d1 = JSON To Data Table( txt );

How to change to the following form?

url = {};dt=Current Data Table();
For( i = 1, i <= 10, i++,
	gp = dt[i, "test"];
	Insert Into(
		url,		"……" || gp || "&……"		);
);
rqs = New Multi HTTP Request();
For( i = 1, i <= N Items( url ), i++,
	rq = New HTTP Request( Method( "GET" ), URL( url[i] ) );
	rqs << Add( rq );
);
hh = rqs << Get Requests();
da = rqs << Download( "show progress", "detailed" );

Thanks!

1 REPLY 1
lala
Level IX

回复: How can I change the Load Text File(url) method to Multi HTTP Request method?

OK

 

Directly modify to the following form can be.

Only the server that happened to be slow, I thought it was not successful.

Thanks!

2024-04-27_17-48-41.png

Recommended Articles