# Pulling a file from Unix box thru https

**URL:** <https://community.unix.com/t/pulling-a-file-from-unix-box-thru-https/257107>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [January 8, 2010, 12:24am UTC](https://community.unix.com/t/pulling-a-file-from-unix-box-thru-https/257107 "2010-01-08T00:24:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![infyanurag](https://community.unix.com/letter_avatar/infyanurag/32/6_449c533f586939b6e5f246632a46421f.png) [@infyanurag](https://community.unix.com/u/infyanurag)\
**Post date:** [January 8, 2010, 12:24am UTC](https://community.unix.com/t/pulling-a-file-from-unix-box-thru-https/257107/1 "2010-01-08T00:24:06Z")

</div>

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](http://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.

Thanks

---

<div class="post-metadata">

**Author:** ![pludi](https://community.unix.com/user_avatar/community.unix.com/pludi/32/1278_2.png) [@pludi](https://community.unix.com/u/pludi)\
**Post date:** [January 8, 2010, 1:34am UTC](https://community.unix.com/t/pulling-a-file-from-unix-box-thru-https/257107/2 "2010-01-08T01:34:30Z")

</div>

Choose 1 of cURL, wget, links, lynx, w3m, LWP::Simple, or one of netcat or telnet via stunnel.

Also, this site has an excellent search engine, eg. searching for "[download file via http](http://www.unix.com/cfmgoogle.php?cx=partner-pub-6323928554267084%3Absye1r5tx7j&cof=FORID%3A10&q=download+file+via+https)" gives a lot of results.

---

<div class="post-metadata">

**Author:** ![infyanurag](https://community.unix.com/letter_avatar/infyanurag/32/6_449c533f586939b6e5f246632a46421f.png) [@infyanurag](https://community.unix.com/u/infyanurag)\
**Post date:** [January 8, 2010, 2:03am UTC](https://community.unix.com/t/pulling-a-file-from-unix-box-thru-https/257107/3 "2010-01-08T02:03:33Z")

</div>

Thanks for your reply.  
I am a newbie to this.

Can you please let me know if there is any prerequisites to use CURL or WGET  
like cetificates,keys etc .

---

<div class="post-metadata">

**Author:** ![pludi](https://community.unix.com/user_avatar/community.unix.com/pludi/32/1278_2.png) [@pludi](https://community.unix.com/u/pludi)\
**Post date:** [January 8, 2010, 2:18am UTC](https://community.unix.com/t/pulling-a-file-from-unix-box-thru-https/257107/4 "2010-01-08T02:18:01Z")

</div>

Usually, none. You might have to play around with the command line switches if you happen to contact a server whose certificate isn't signed by a well-known authority, but you'd best refer to the man pages for that.
