Perl file server

Perl file server

am 27.08.2007 10:49:19 von lg

I want to create a simple file server on my web page.

The goal is to create a way to download a newletter text file for my computer
program users (win32) with least amount of hassle for the user. The optimum would
be if all could be done in the background without any dialogs - just like many
commercial programs to nowadays.

I am thinking at my program would open make open a
www.mysite.com/perlselverl.pl&userdata which would initiate a file download
without any "Do you want to download a file" dialog popping up.

Re: Perl file server

am 28.08.2007 09:27:26 von Joe Smith

zentara wrote:

> use LWP::Simple;
> # untested
> my $bin_data = get ('http://www.mysite.com/my.cgi');

my $status_code = getstore('http://www.mysite.com/my.cgi','newsletter.zip');
print "OK\n" if $status_code == 200;

-Joe