Get files using https mode in unix scripts


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Get files using https mode in unix scripts
# 1  
Old 02-18-2010
MySQL 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
# 2  
Old 02-18-2010
Why, what's wrong with wget or curl? In theory it should even be possible using bashs network pseudo-devices and stunnel, but that would be taking it to the extreme.
# 3  
Old 02-18-2010
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
# 4  
Old 02-18-2010
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:
Code:
$ wget https://server/path/to/file # Saves as file in the current directory
$ curl -o file https://server/path/to/file # The same

# 5  
Old 02-18-2010
Quote:
Originally Posted by mohanpadamata
can i use them directly without installing anything in my solaris machine?
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.
# 6  
Old 03-09-2010
MySQL CURL error

Hi Friends.

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

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

Code:
$ /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

Last edited by pludi; 03-09-2010 at 06:00 AM.. Reason: code tags, svp!!!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

UNIX - FTP changing the mode while transfering the files

Hi, I have to transfer my files using FTP. Few files are in Zipped format (.Z) and few are in .PX format . For zipped files, we need to change the mode to binary while transferring the files whereas for the px files the mode should be ascii. Eg: sample1.z sample2.z sample3.z sample.px ... (2 Replies)
Discussion started by: vidlaks
2 Replies

2. Solaris

Need suggestion:- Failed HTTPS transfer to https://supportfiles.sun.com/curl

Hi Guys, I have recently started reciving below Error message Failed HTTPS transfer to https://supportfiles.sun.com/curl whenever I run /usr/local/bin/sudo /opt/SUNWexplo/bin/explorer -P -q -v from all Servers. Looks like the SSL certificate as Expired. Whenever I type... (4 Replies)
Discussion started by: manalisharmabe
4 Replies

3. UNIX for Advanced & Expert Users

Https connection to UNIX DUT failing

HI !! I have this setup where I have Windows machine and a UNIX based DUT . I try to make a https connection from my Win to the DUT giving its IP. But,it is not working (It should do). What do u think the problem is ?? I checked the logs , they flag some writesocket:broken pipe error in... (1 Reply)
Discussion started by: leghorn
1 Replies

4. Shell Programming and Scripting

Using Expect scripts to port files to different unix box

Hello all, I've been trying to design a script which will help me transfer files from one unix box to another. Following is the code: #!/usr/local/bin/expect spawn /usr/bin/scp ms_cp5_daily.ksh userid@cat:/prod/env/ms.txt set pass xxxxxx expect { password: {send "$pass\r";... (4 Replies)
Discussion started by: sethmj
4 Replies

5. UNIX for Advanced & Expert Users

Help with using curl to download files from https

Hi I'm trying to download an xml file from a https server using curl on a Linux machine with Ubuntu 10.4.2 I am able to connect to the remote server with my username and password but the output is only "Virtual user <username> logged in". I am expecting to download the xml file. My output... (4 Replies)
Discussion started by: henryN
4 Replies

6. UNIX for Dummies Questions & Answers

Pulling a file from Unix box thru https

Hi I have a file called as MSD.DAT. This file is present at a directory on a server. www.ta.ibhsv.somewhere.com/rahdf/MSD.DAT Now, I want to get this file from this server to my Linux box. I need to write a script that uses https to get the file. Please help how to achieve this. ... (3 Replies)
Discussion started by: infyanurag
3 Replies

7. UNIX for Dummies Questions & Answers

file transfer from https to a Unix box

Hi, I want to transfer a file from a https side to an unix machine, somebody can let me know a easy way to do so, A simple script to be put in the unix machine to retrieve the file from the https side Thanks (4 Replies)
Discussion started by: jvjaimes
4 Replies

8. Shell Programming and Scripting

FTP Shell Scripts from Windows to Unix: files have exotic characters

Hey guys, I am working on my shell scripts in wordpad in windows. Then, I upload it to my unix using psftp, but when I open those files with "vi" in Unix, there are all these "^M" characters in the file. Would anyone of you have a clue as to why? Help would be appreciated. Thanks, Laud (4 Replies)
Discussion started by: Laud12345
4 Replies

9. UNIX for Advanced & Expert Users

HTTPS connection unix

Hi, I have a situation....where I have to make a HTTPS:// connection to the third party web site to grab 5 files from their server. I am little new to unix. Can anyone please help me creating the shell script for making this connection and grabing or reading the files from their server to... (2 Replies)
Discussion started by: rkumar28
2 Replies
Login or Register to Ask a Question