- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
回复: 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" );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: This POST form of Multi download, download the result of the same file name, constantly covered, how to solve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: This POST form of Multi download, download the result of the same file name, constantly covered, how to solve?
Created:
Apr 16, 2024 07:49 AM
| Last Modified: Apr 16, 2024 7:32 AM
(923 views)
| Posted in reply to message from jthi 04-16-2024
OK、Thanks!
I forgot all about it.
requests<<Add(rs,"test"||char(i));