Re: getting files from the internet

2004-10-19 Thread Bill Jones
--- Jeff Herbeck <[EMAIL PROTECTED]> wrote: > I want to be able to have webtv users (who can't save files locally) > to each have their own user account to log into the apache login, > then > type a URL of a file that they want to put into their own > folder/webspace. Yes, then once they are au

Re: getting files from the internet

2004-10-19 Thread Jeff Herbeck
I want to be able to have webtv users (who can't save files locally) to each have their own user account to log into the apache login, then type a URL of a file that they want to put into their own folder/webspace. Jeff On Mon, 18 Oct 2004 16:08:44 -0700 (PDT), Bill Jones <[EMAIL PROTECTED]> w

Re: getting files from the internet

2004-10-18 Thread Bill Jones
--- Jeff Herbeck <[EMAIL PROTECTED]> wrote: > but the directory it goes to has to be owned by "apache". Is there > any way it can be made to be owned by the remote user? Dynamically set ownership of an unknown user? Yes - But why would you want to do that? -Sx- = -Sx- seeking employmen

Re: getting files from the internet

2004-10-18 Thread Jeff Herbeck
I have this working now: #!/usr/bin/perl use strict; use warnings; use HTTP::Response; use LWP::Simple 'getstore'; my $url = 'http://www.jeffherbeck.com/arch.doc'; my $remote_user = $ENV{REMOTE_USER};# || 'unknown_user'; my $file= 'newfile.txt'; my $response= HTTP::Response-

Re: getting files from the internet

2004-10-18 Thread Bill Jones
[this is not a question - it is just a small follow-up] This code only gives me 404 File Not found -- which is correct behaviour - #!/usr/bin/perl use strict; use warnings; use HTTP::Response; use LWP::Simple 'getstore'; my $url = 'http://insecurity.org/test.doc'; my $remote_user = $E

Re: getting files from the internet

2004-10-18 Thread Bill Jones
--- Jeff Herbeck <[EMAIL PROTECTED]> wrote: > 192.168.1.200 - - [18/Oct/2004:07:36:06 -0500] "GET > /cgi-bin/test/test.cgi HTTP/1.1" 401 1248 "-" "Mozilla/4.0 > (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" > 127.0.0.1 - - [18/Oct/2004:07:36:11 -0500] "GET /arch.doc HTTP/1.1" >

Re: getting files from the internet

2004-10-18 Thread Jeff Herbeck
This is the only log file that had been modified after I tried to run the script. It was access_log 192.168.1.200 - - [18/Oct/2004:07:36:06 -0500] "GET /cgi-bin/test/test.cgi HTTP/1.1" 401 1248 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" 127.0.0.1 - - [18/Oct/

Re: getting files from the internet

2004-10-17 Thread Bill Jones
--- Jeff Herbeck <[EMAIL PROTECTED]> wrote: > This code gives me a 500 internal server error. And the WWW Server Logs say - what? -Sx- = -Sx- seeking employment: http://youve-reached-the.endoftheinternet.org/ ___ Do you Yahoo!? Declare Yourse

Re: getting files from the internet

2004-10-17 Thread Jeff Herbeck
This code gives me a 500 internal server error. On Thu, 14 Oct 2004 10:39:48 -0500, Charles K. Clarkson <[EMAIL PROTECTED]> wrote: > Jeff Herbeck <[EMAIL PROTECTED]> wrote: > > : Hello, > > > : > : I want to be able to have a user login with apache > : authentication (which I have that part wo

RE: getting files from the internet

2004-10-14 Thread Charles K. Clarkson
Jeff Herbeck <[EMAIL PROTECTED]> wrote: : Hello, : : I want to be able to have a user login with apache : authentication (which I have that part working) and then : take a URL from a form and download the file in that url : and put it in a directory for that user. Here is what I : have so far. I

Re: getting files from the internet

2004-10-14 Thread David Dorward
On Thu, Oct 14, 2004 at 09:09:00AM -0500, Jeff Herbeck wrote: > Here is what I have so far. It runs, but it doesn't do anything but > display "aaa" > > #!/usr/bin/perl Where are use strict and use warnings? > getstore("$URL", "/var/www/html/$remote_user/"); According to the perldoc for getst

Re: getting files from the internet

2004-10-14 Thread Chris Devers
On Thu, 14 Oct 2004, Jeff Herbeck wrote: > getstore("$URL", "/var/www/html/$remote_user/"); LWP::Simple's getstore() method takes a URL and a file as arguments. You've given it a URL and a directory. Try something like this: getstore("$URL", "/var/www/html/$remote_user/foo"); (Note that i