file transfer from https to a Unix box


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers file transfer from https to a Unix box
# 1  
Old 05-22-2008
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
# 2  
Old 05-27-2008
Can be done in many ways, I guess, curl, wget, etc. Quick examples :
Code:
curl -vvv -c cookie -k -u user:pass https://hostname.com; curl -v -b cookie -k -O https://hostname.com/folder/file.name; rm -f cookie

This is curl powered one-liner, just replace the user, pass, hostname and path to file name.
With wget it's even more easy -
Code:
wget https://hostname.com/FileName

- shall you need the user and password authentication, take a look at the wget man pages for "--http-user=user" and "--http-password=password"
# 3  
Old 05-27-2008
Hi,
thank you for your help, but i still need some assistence from you, because i can not run in the server any of this commands neither curl not wget, i am receiving command not found, please let me know what can i do to solve this issue
# 4  
Old 05-27-2008
You may need to install the package onto your system.

wget can be found here.
Download from the wget-latest.tar.gz link - bottom of page.

curl can be found here.
Look for the one you need - there's a few Smilie

Cheers,
Cameron
# 5  
Old 07-21-2008
hi,

is there another way to do the same without install anything additional in the server?

Regards

Jose
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. UNIX for Dummies Questions & Answers

Transferring the file from one UNIX box to another UNIX box

Hi Folks, I am using winscp to graphiclly move the files from one unix box to another unix box , let say one unix box crediantials is (These are dummy crediantials) xxx -->username yyy -->password and another unix box name is RRR -->username TTT -->password NOW i need to... (4 Replies)
Discussion started by: punpun66
4 Replies

3. 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

4. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

5. UNIX for Advanced & Expert Users

Copy file from unix box to another unix box

Hi, I am new for perl scripting, I need a script to copy a log file /test/test_yyyymmdd.dat from one unix box to another unix box location /check/check1/ at daily 2:00AM, please let me know how to do that...... Regards, Ann (8 Replies)
Discussion started by: fabrine
8 Replies

6. UNIX for Advanced & Expert Users

FTP transfer from Linux to unix box

Hi, I transferred a tar.gz file from a linux server to a unix server using ftp. In the unix box when i untarred, only few files with zero bytes were copied and i get "tar dir : cksum error" Could anyone help me out ? Thanks & Regards, Abinaya (3 Replies)
Discussion started by: abinaya
3 Replies

7. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

8. UNIX for Dummies Questions & Answers

File Upload Performance using IE from Windows to Unix via HTTPS

Hi, Is there any performance issue uploading a file using IE from Windows client to UNIX server via HTTPS? Before that, we were using HTTP protocol and everything run smooth Once we change to HTTPS, we might hit the "HTTP 500 Internal server error" Even though this does not happen all the... (1 Reply)
Discussion started by: darontan
1 Replies

9. UNIX for Advanced & Expert Users

How to FTP a file generated at UNIX Box to NT Box

Hi all, I am generating a file on the Unix machine , now i want to FTP the same file to the NT machine. how can i do that and the application currently upon which i am working is a JAVA based application. I need your help. regards Ruchir (2 Replies)
Discussion started by: Ruchir
2 Replies

10. IP Networking

File transfer from unix to NT box?

Is there a method to transfer a file from UNIX (AIX) to an NT box without the NT box having any special software running? I can ping the box via the network and I have a valid NT account to use. Is FTP a viable solution ? HELP! (10 Replies)
Discussion started by: jvacc
10 Replies
Login or Register to Ask a Question