[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Perl PUT script help



> I want to implement the PUT action on the Apache server on MacOS-X Server.
> I found a PUT example script <http://www.apacheweek.com/issues/put1>, but
> no examples on how to use this, nor HTML example code. Does anyone on this
> list have some example HTML code and ideas of setting up the access.conf
> files?
>
> I need to have a button on the web page that allows a (priviliged) user to
> login and send a local file TO the server.
>
> Any pointers welcome!


The URL (and code) you mention seemed complete to me...


In that perl code, on line:

if ($ENV{'REQUEST_METHOD'} ne "PUT") { &reply(500,
"Request method is not PUT"); }


See?

You see that the METHOD of PUT is required; this is the same as calling a
CGI with a method of either GET or POST.

As far as when you say "allows a (privileged) user" - that is a trick.
You would have to either use HTTPS or some fancy basic authentication to get
that part to work...  See http://jacksonville.pm.org/source/WebPass.html for
an example of how you might go about it...

/^HTH$/
-Sneex-  :]
______________________________________________________________________
Bill Jones  Data Security Specialist  http://www.fccj.org/cgi/mail?dss
Need to get started in Perl? See http://jacksonville.pm.org/Letter.cgi

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org