Can Multi HTTP Request be used for this form of download?Thanks Experts!
u = "";
d1 = Open( u, HTML Table( 1, Column Names( 1 ), Data Starts( 2 ) ) );
to
rqs = New Multi HTTP Request();
For( i = 1, i <= N Items( us ), i++,
rq = New HTTP Request( Method( "GET" ), URL( u[i] ) );
//HTML Table( 1, Column Names( 1 ), Data Starts( 2 ) )
rqs << Add( rq );
);
hh = rqs << Get Requests();
da = rqs << Download( "show progress", "detailed" );
Automation and ScriptingWindowsRe: Can Multi HTTP Request be used for this form of download?without running it....
da would be a list of the filenames that were downloaded.
hh is of course the list of requests, which is useful for checking the HTTP Status and codes (if needed).
so
da[1] is the html filename of the downloaded file, that you then pass to Open.
I think since you didn't provide a filename then New Multi HTTP Request() will just generate a unique filename for each file and put them in $TEMP. That means they'd get cleaned up when JMP closes, which I think in your case is OK since you't making a JMP table from the HTML.
I think you can also use send (instead of download) and da would be a list of blobs. You can then pass say da[1] to Open telling it is a blob. That wouldn't page to the filesystem as html.
Sorry the documentation is a little sparse.
Let me know if you need more info.
Re: Can Multi HTTP Request be used for this form of download?Thanks Experts!
like this
u="https://ctext.org/dictionary.pl?if=gb&id=26168";d1=Open(u,HTML Table(2,Column Names(1),Data Starts(2)));

Re: Can Multi HTTP Request be used for this form of download?u="https://ctext.org/dictionary.pl?if=gb&id=26169";d1=Open(u,HTML Table(2,Column Names(1),Data Starts(2)));Wait(0);
u="https://ctext.org/dictionary.pl?if=gb&id=26170";d1=Open(u,HTML Table(2,Column Names(1),Data Starts(2)));Wait(0);
Re: Can Multi HTTP Request be used for this form of download?OK、Thanks Experts!
