这种特殊的下载怎么能正常合并成一个大文件呢。
谢谢!
requests = New Multi HTTP Request();
s0 = N Items( urls );
For( j = 1, j <= s0, j++,
rs = New HTTP Request( Method( "GET" ), URL( urls[j] ),Timeout(0.1) );
//ts = rs << Send;requests << Add( ts );
requests << Add( rs );
);
da = requests << Download( "show progress", "detailed" );//
j=1;s=NItems(da);mm=0;
我不确定我得到了你的要求,但是重新安排你的循环结构可以解决这个问题吗? 下面是循环多个 HTTP 请求的类似方法的示例。
Names Default to Here (1);
//Web( "https://vpic.nhtsa.dot.gov/api/" ); //API documentation
vins = {"3FTTW8E3XPRA36592", "5FPYK3F11PB050312"}; //Random small trucks for sale, pulled from internet
year = "2023"; //year for ^
for each ({i}, vins,
//make URL
u = "https://vpic.nhtsa.dot.gov/api/vehicles/decodevinextended/" || i || "?format=json&modelyear=" || year;
//create and send request; capture results as 's'
s = New HTTP Request( URL( u ), Method( "GET" ) ) << Send;
//make results into a data table
dt = JSON To Data Table( s );
);
/*JMP STATISTICAL DISCOVERY LLC (“JMP”) PERMITS THE USE OF THIS COMPUTER SOFTWARE CODE (“CODE”) ON AN AS-IS BASIS AND AUTHORIZES YOU TO USE THE CODE SUBJECT TO THE TERMS LISTED HEREIN. BY USING THE CODE, YOU AGREE TO THESE TERMS. YOUR USE OF THE CODE IS AT YOUR OWN RISK. JMP MAKES NO REPRESENTATION OR WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRIGEMENT, AND TITLE, WITH RESPECT TO THE CODE.
You may use the Code solely as part of a software product you currently have licensed from JMP, JMP’s parent company SAS Institute Inc. (“SAS”), or one of JMP’s or SAS’s subsidiaries or authorized agents (the “Software”), and not for any other purpose. The Code is designed to add functionality to the Software but has not necessarily been tested. Accordingly, JMP makes no representation or warranty that the Code will operate error-free. JMP is under no obligation to maintain, support, or continue to distribute the Code.
Neither JMP nor its licensors shall be liable to you or any third-party for any general, special, direct, indirect, consequential, incidental, or other damages whatsoever arising out of or related to your use or inability to use the Code, even if JMP has been advised of the possibility of such damages. Except as otherwise provided above, the Code is governed by the same agreement that governs the Software. If you do not have an existing agreement with JMP or SAS governing the Software, you may not use the Code.
JMP and all other JMP Statistical Discovery LLC product or service names are registered trademarks or trademarks of JMP Statistical Discovery LLC in the USA and other countries. ® indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies.
*/
使用 JMP 17 执行多 HTTP 请求时,遇到此下载没有临时文件夹没有找到文件的情况,

但这是一个发现下载。
