After having trouble getting Guvnor to accept my .jar via Java sockets, I decided to do
some tests with curl.
But I can't get Curl to upload the JAR either. The error I get is:
HTTP Status 501 -
type status report
description The server does not support the functionality needed to fulfill this request
()
Details:
My package: "rules"
My jar file: Model.jar (in current directory)
Version: Guvnor 5.5.0.Final under JBoss
Main URL:
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html
Login with admin/admin
Script 1:
#!/bin/bash
# My package is "rules"
URL=http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packages/rules/
FILE=Model.jar
AUTH=admin:admin
curl -X POST --verbose --user "$AUTH" --data-binary @$FILE $URL
Tried some variations:
Tweak URL (add slash, add file name)
URL=http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packages/rules/
URL=http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packages/rules/Model.jar
Mime type:
MIME=application/java-archive
curl -X POST --verbose --user "$AUTH" --header "Content-Type:$MIME"
--data-binary @$FILE $URL
I'd appreciate any advice / examples.
Thanks
--
Mark Bennett / LucidWorks: Search & Big Data /
mark.bennett@lucidworks.com<mailto:mark.bennett@lucidworks.com>
Office: 408-898-4201 / Telecommute: 408-733-0387 / Cell: 408-829-6513