cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
lala
Level VII

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 VII

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