Hi,
I'm using GeoServer 1.7.4 with the REST 1.7.2 plugin. When I try to add a
workspace using the following cURL command (per the example at the top of
http://gridlock.openplans.org/geoserver/1.7.x/doc/user/extensions/rest/rest-config-examples-curl.html):
curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' \
-d '<workspace><name>acme</name></workspace>' \
http://localhost:8080/geoserver/rest/workspaces
I get the following error:
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Basic with user 'admin'
POST /geoserver/rest/workspaces HTTP/1.1
Authorization: Basic YWRtaW46Z2Vvc2VydmVy
User-Agent: curl/7.19.5 (i586-pc-mingw32msvc) libcurl/7.19.5 zlib/1.2.3
Host: localhost:8080
Accept: */*
Content-type: text/xml
Content-Length: 40
< HTTP/1.1 405 Method Not Allowed
< Server: Apache-Coyote/1.1
< Allow: GET
< Date: Thu, 28 May 2009 22:25:37 GMT
< Server: Noelios-Restlet-Engine/1.0..8
< Transfer-Encoding: chunked
<
* Connection #0 to host localhost left intact
* Closing connection #0
Can someone please tell me why this isn't working and why I'm getting a '405
Method Not Allowed' error?
Thank you.
Sam C
--
View this message in context: http://www.nabble.com/REST-plugin-error%3A----HTTP-1.1-405-Method-Not-Allowed-tp23771321p23771321.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.