Get files using https mode in unix scripts

Hello Friends,

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 ?

Thanks a lot in advance

Regards,
Mohan

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.

Hi Pludi,

Thanks for the information.

can i use them directly without installing anything in my solaris machine ?

could you give me some code snippets for those two commands ?

Thanks in advance..

Regards,
Mohan

Don't know if they're installed with the default Solaris installation, but they should be available. And the usage is as simple as can be:

$ wget https://server/path/to/file # Saves as file in the current directory
$ curl -o file https://server/path/to/file # The same

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.

Hi Friends.

I have installed CURL in my system at /usr/local/bin/curl and i am getting error while trying use the command,

---------------

$ /usr/local/bin/curl Linux Operating System and Linux Distributions
ld.so.1: curl: fatal: libidn.so.11: open failed: No such file or directory
Killed

------------------

any idea about the error ?

Thanks & Regards,
Mohan