469,648 Members | 1,475 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

secure uploading

hi
i'm after a way to securely upload a file to a web server and I'm
wondering how to go about it. basically i want to upload a small text
file to my hosted webspace once every hour or so. because it will be
happening once an hour, i want to make sure the transaction is
encrypted, but i don't really know how to do this. can someone point
me in the right direction?

i'm a reasonably noob scripter so go easy on me. :) thanks!
-h.

Jul 21 '05 #1
8 1514
"macaronikazoo" <ma***********@gmail.com> writes:
i'm after a way to securely upload a file to a web server and I'm
wondering how to go about it. basically i want to upload a small text
file to my hosted webspace once every hour or so. because it will be
happening once an hour, i want to make sure the transaction is
encrypted, but i don't really know how to do this. can someone point
me in the right direction?


Use SSL/TLS. It's not a scripting thing, just set up your server to
enable encryption. If you use apache, http://modssl.org might get you
started.
Jul 21 '05 #2
well I want a script to upload something automatically, so i need a
python script to do that for me. my hoster has ssl enabled on their
server and I have generated a key. but now I need to know how to
upload something using ssl to the server. how to I ftp something to
the server using ssl?
thanks.

Jul 21 '05 #3
"macaronikazoo" <ma***********@gmail.com> writes:
well I want a script to upload something automatically, so i need a
python script to do that for me. my hoster has ssl enabled on their
server and I have generated a key. but now I need to know how to
upload something using ssl to the server. how to I ftp something to
the server using ssl?


Ftp is not usually done over ssl. Usually you'd use http over ssl.
Jul 21 '05 #4
ok, so what can I do to get something uploaded? how can I upload
something via http?

Jul 21 '05 #5
"macaronikazoo" <ma***********@gmail.com> writes:
ok, so what can I do to get something uploaded? how can I upload
something via http?


Depends on your web host. At worst, use a server side script to
accept the upload. You're asking basic webmaster-type questions.
This really isn't the best place for those.
Jul 21 '05 #6
oh ok cool. I'll ask them for some advice. thanks!

Jul 21 '05 #7
On 16 Jul 2005 18:28:33 -0700, macaronikazoo <ma***********@gmail.com> wrote:
well I want a script to upload something automatically, so i need a
python script to do that for me.
Well, you need /something/. If you are on a Unix machine, you'd be better
off with a cron job.
my hoster has ssl enabled on their
server and I have generated a key. but now I need to know how to
upload something using ssl to the server. how to I ftp something to
the server using ssl?


Are you sure your hoster doesn't provide ssh access to his machines? If he
does, there is a wealth of protocols and tools for secure file transfer:
scp, sftp, tar-over-ssh, cpio-over-ssh, rsync-over-ssh, ...

With some loss of security, you may even be able to avoid handling
passwords.

/Jorgen

--
// Jorgen Grahn <jgrahn@ Ph'nglui mglw'nafh Cthulhu
\X/ algonet.se> R'lyeh wgah'nagl fhtagn!
Jul 21 '05 #8
praba kar enlightened us with:
When we upload a file to the remote server we can get file type
through file extentions.
No you can't, you can only make a better guess. If I name my PNG file
somefile.jpg, you won't be able to get the file type through file
extentions.
How we can find out file type if a file doesn't have any
extentions?


One method is to look at the Content-type header the client sent along
with the file. Another way is through the 'file' command.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Jul 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by d z e k y l | last post: by
2 posts views Thread by Mullin Yu | last post: by
1 post views Thread by Steve Franks | last post: by
7 posts views Thread by Skijor | last post: by
5 posts views Thread by Billy | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.