Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: SFTP/HTTPS

990 is port for FTPS (FTP over SSL).
443 is port for HTTPS (HTTP over SSL).
WinSCP supported neither of them. Support for FTPS is planned. But WinSCP is not an appropriate tool to HTTPS.
sasman

SFTP/HTTPS

I have been tasked to "GET" files from a remote server every day. The given instructions ask me to log into https://www.example.com/ and then, using my web browser, download the needed files. I would like to automate this process and was advised to use WinSCP and a script file, however, I am having problems connecting. I was told to use port 990, but only port 443 seems to get me anywhere, and that's not far.

This is the content of my script file:

# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on

# Disable overwrite confirmations that conflict with the previous
option confirm off

# Connect using a password
# open user:password@example.com
open xxxx:xxxx@xxxx.xxxx.com:443

# Disconnect
close

# Exit WinSCP
exit

... and this is what I see when executing:

batch on
confirm off
Searching for host..
Connecting to host..
Host has not answerered for more that 15 seconds, still waiting...
Warning: Aborting this operation will close connection!
(A)bort: Abort
Terminated by user.

I cannot connect using the WinSCP GUI either. Should I be able to connect and download files from the server using WinSCP and a script file?

Thanks