AFAIK there is no notion of listable directories in HTTP(S). For SFTP you can use
sshfs and then work with the files as if they were local: cp and globbing should work.