For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > September 2004 > perl/cgi/file getting









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author perl/cgi/file getting
Jeff Herbeck

2004-09-26, 3:55 am

Hello,

I am trying to start a "transloading" and webhosting company. This
will allow users to login via apache .htaccess type authentication and
then be able to put a url of a file into a form and the script will
go get that file, download it to the webserver into their html
directory and then be available for world access. I have the security
setup (apache athentication) and I can get their username with
env(REMOTE_USER) but I dont' know what to do from here. I know I want
to use "wget" to get the file, but i can't seem to get it to work in a
script. I am a linux admin, but don't know perl. How can I log in
the http user into linux and go get that file with wget so it will go
in their home directory, which will be their html directory. Can
someone please get me started?

Thanks in advance

Jeff
Wiggins d'Anconia

2004-09-26, 3:55 am

Jeff Herbeck wrote:
> Hello,
>
> I am trying to start a "transloading" and webhosting company. This
> will allow users to login via apache .htaccess type authentication and
> then be able to put a url of a file into a form and the script will
> go get that file, download it to the webserver into their html
> directory and then be available for world access. I have the security
> setup (apache athentication) and I can get their username with
> env(REMOTE_USER) but I dont' know what to do from here. I know I want
> to use "wget" to get the file, but i can't seem to get it to work in a
> script. I am a linux admin, but don't know perl. How can I log in
> the http user into linux and go get that file with wget so it will go
> in their home directory, which will be their html directory. Can
> someone please get me started?
>
> Thanks in advance
>
> Jeff
>


Please don't post to multiple groups simultaneously. Post to one and
wait for a response if your question is not answered then try a
different forum. This is considered rude and time wasting. This is
currently being discussed on beginners-cgi.

http://danconia.org
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com