I have a requirement to connect and get files from a server using https protocol.
1) COuld you please advise on how to establish connection between my server and remote server to get files using https mode. any special procedure apart from FTP ?
2) also give me some code snippet which gets files using https mode ?
Why, what's wrong with man wget (Linux) or man curl (Linux)? In theory it should even be possible using bashs network pseudo-devices and stunnel, but that would be taking it to the extreme.
You're going to need to install something. These things aren't going to download themselves. And you might as well use a well-known application for it instead of hacking a badly-done from-scratch solution.