Auto selecting to retry when the Download failed

Advertisement

Yazid
Guest

Auto selecting to retry when the Download failed

Hi,
I have an automated script to download big files from an HTTP server, and during the file downloading, this prompt appears:
Error transferring file '***'.
Could not read body: Secure connection truncated
(A)bort, (R)etry, (S)kip, Ski(p) all:
Then it choose Abort (default).
My question is how to change the default behavior to Retry?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
33,846
Location:
Prague, Czechia

Re: Auto selecting to retry when the Download failed

Is that a WebDAV server? Can you post a complete log file?

Reply with quote

Yazid
Guest

Hi Martin,
yes it's a WebDAV server, this the script that we use:
# Connect to WebDav using a password
open https://******:******@***** -hostkey="***********************" -rawsettings SendBuf=0

# Download file
get /atyponops/DB/%1%/%1%_%2%_clone.bak %3%

# Exit WinSCP
exit

Reply with quote

Yazid
Guest

Sorry but the logs were not there, this is an example:
Connecting to host...
Authenticating...
Authenticating... 
Authenticated. 
Starting the session... 
Session started. 
Active session: [1] ****@******
****.bak | 124471390 KB | 1080.5 KB/s | binary | 13% 
Error transferring file '/*****.bak'. 
Could not read response body: Secure connection truncated 
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort NULL
The script chooses Abort as default and I need to change it

Reply with quote

Advertisement

You can post new topics in this forum