cgi put script?

2002-07-16 Thread greeniize

Hi,

Thanks to everyone for the suggestions- I have not tried many of them.
There does not seem to be much documentation, for this function.

I need some time for further "experimenting", and will let you know the
results.

Thanks!

Steve



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: cgi put script?

2002-07-16 Thread Connie Chan

> I'm trying to get the "put" function from Netscape, to work with Apache.

What is the "put function" ?

> I have a windows OS (NT server), and I'm using the windows version of perl
> as a cgi script interpreter.  The problem is, the put script won't work
> with perl.

Have you correctly set the parameter which let Apache know where is your
cgi-bin is ? and in your code, have you state #!C:/blah/blah... / -wT
correctly ?
Did your success for some simple test, just like print 'hello world' ?

> I just get "server error" messages, because perl doesn't like
> the commands, or the syntax, in the scripts.

Do you mean 500 Server error ? but can you sure there are no error inside
the code ? did you turn on warnings ? and use die "..." ? and did you print
header (ie. print "Content-type: text/html\n\n" ) ?

> I found the scripts from a web site, and a book on Apache.  I'd like to
> first try just finding another put script that will work with perl, in
> windows.

So what's the code ? Would you show us ?

> Are there any sources for cgi scripts, I might look at?

There are a lot if you search it by a google engine. But what do you want ?

Rgds,
Connie


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: cgi put script?

2002-07-16 Thread Aaron Dalton

If you're using CGI.pm that comes with perl, it's POD documentation gives
an example of how to upload a file.  Search for the header "CREATING A
FILE UPLOAD FIELD"  That example code has worked just fine for me.

Your file system permissions *have* to be set properly though.  In
Unix/Linux that's done with chmod.  I have never used Apache under NT so I
can't help you there.

Hope that helps.
Aaron Dalton


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: cgi put script?

2002-07-16 Thread Joel Hughes

Hi Steve,
is this the HTTP PUT method we are talking about which allows resources to
be written to a web server?

If so, obviously the 'out of the box' config for most webservers (inc
Apache) wont allow the anonymous user to write files to the servers file
system (security risk no?). To alter this config I guess you have to amend
the httpd.conf file but, before you do that, I would:
a) check the apache access and error logs to see if they say anything
interesting (probably in c:\program files\ApacheGroup\Apache\logs"
b) use CGI Carp to try and get meaningful CGI errors

Can you let us know more about this script you are using etc?


joel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 16 July 2002 01:31
To: [EMAIL PROTECTED]
Subject: cgi put script?

Hi,

I'm trying to get the "put" function from Netscape, to work with Apache.

I have a windows OS (NT server), and I'm using the windows version of perl
as a cgi script interpreter.  The problem is, the put script won't work
with perl.  I just get "server error" messages, because perl doesn't like
the commands, or the syntax, in the scripts.

I found the scripts from a web site, and a book on Apache.  I'd like to
first try just finding another put script that will work with perl, in
windows.  Are there any sources for cgi scripts, I might look at? Failing
that, can someone point me to some resources to show me how to write my
own put scripts?

Thanks,

Steve






--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cgi put script?

2002-07-15 Thread greeniize

Hi,

I'm trying to get the "put" function from Netscape, to work with Apache.

I have a windows OS (NT server), and I'm using the windows version of perl
as a cgi script interpreter.  The problem is, the put script won't work
with perl.  I just get "server error" messages, because perl doesn't like
the commands, or the syntax, in the scripts.

I found the scripts from a web site, and a book on Apache.  I'd like to
first try just finding another put script that will work with perl, in
windows.  Are there any sources for cgi scripts, I might look at? Failing
that, can someone point me to some resources to show me how to write my
own put scripts?

Thanks,

Steve






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]