cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
lwx228
Level VIII

How can use JSL to download this special linked network file?

I have tried this link and it does not open in a browser, but using a download tool like IDM It can download a PDF file.

https://pdfssj.sslibrary.com/download/getFile?fileMark=96236406&userMark=&pages=124&time=16125232462... 
Can links like this be downloaded with JSL?Thanks Experts!

2021-02-05_19-12-08.png

 

10 REPLIES 10
lwx228
Level VIII

Re: How can use JSL to download this special linked network file?

Analysis of the link

2021-02-05_19-16-37.png

Craige_Hales
Super User

Re: How can use JSL to download this special linked network file?

The link appears to be bad or stale. When I curl the link on Linux, I see a 500 error

<!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><sty ...

Perhaps the server is caching something for you for a limited time, allowing you to ask about it (subsequent pages?) for a few minutes after the initial query before clearing the cached result.

Craige
lwx228
Level VIII

Re: How can use JSL to download this special linked network file?

Thank Craige!

Yes.Its links are time-sensitive.I reconsulted it for a new link.The same content as the download.

  •  
https://pdfssj.sslibrary.com/download/getFile?fileMark=96236406&userMark=&pages=124&time=16127042561...

 

lwx228
Level VIII

Re: How can use JSL to download this special linked network file?

  • Update today's address、Thanks!

 

https://pdfssj.sslibrary.com/download/getFile?fileMark=96236406&userMark=&pages=124&time=1612704256175&enc=8fe943ac652a572c9f2a5b8df1daa14a&code=109366b792dd692fc19055fc8bc734f4&cpage=45
txnelson
Super User

Re: How can use JSL to download this special linked network file?

I have tried yesterday and today and the page does not display
Jim
Craige_Hales
Super User

Re: How can use JSL to download this special linked network file?

Try this. For me it produces the error message. 

parms = [
	"fileMark"=>"96236406",
	"userMark"=>"",
	"pages"=>"124",
	"time"=>"1612704256175",
	"enc"=>"8fe943ac652a572c9f2a5b8df1daa14a",
	"code"=>"109366b792dd692fc19055fc8bc734f4&",
	"cpage"=>"45"
];

s = New HTTP Request(
	URL(
		"https://pdfssj.sslibrary.com/download/getFile"
	),
	form(fields(parms)),
	Method( "GET" ), 

);

result = s << Send;
show(result);
show(s<<GetResponseHeaders);
show(s<<GetWarningHeaders);
show(s<<GetStatusMessage);
show(s<<headers);


//showproperties(s);

result = "<!doctype html><html lang=\!"en\!"><head><title>HTTP Status 500 – Internal Server Error</title><style type=\!"text ...

There may be credential/password/authentication issues, or something else. The server's message means the server was unhappy about the request.

Craige
Craige_Hales
Super User

Re: How can use JSL to download this special linked network file?

Sometimes the server delivers a better-than-blank-page response:

Capture.png

Craige
lwx228
Level VIII

Re: How can use JSL to download this special linked network file?

The problem has been solved:

Open the site through a piece of software called "Selenium" and download the PDF through the script.

 

 

Thank Craige!

lwx228
Level VIII

Re: How can use JSL to download this special linked network file?

Thanks Experts!

 

Okay, I'll give up the attempt.
I used IDM to get the first PDF download address, analyzed it and completed the rest of the PDF with JSL.Then use IDM to bulk download.
It would be much faster if JSL downloaded it directly.