Marc Farrow wrote:
> You have to use the webdav application provide from tomcat.  Check under
> $tomcat_home/webapps/webdav/web.xml.  there is a line commented out that
> states some property of read-only = false.  by default it is read-only and
> you have to manually turn it on.

What on earth has webdav got to do with this?

> On 4/18/06, Garey Mills <[EMAIL PROTECTED]> wrote:
>> Hello -
>>
>>        I want to stop and start a context from a Java program running as
>> a cron job. I have tried
>>
>>        http://<host>:<port>/manager/stop?
>>        username=<manager-role username>&
>>        password=<password>&
>>        path=/<context path>
>>
>> (without the carriage returns, of course). This yields me a 401. Reading
>> the manager app documentation, it doesn't actually explain how to
>> authenticate from a script. How do I do it?

The user name and password get passed as HTTP headers. The easiest way
is probably to use the provided ant tasks. See the bottom of
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html for details.


Mark


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

Reply via email to