Hi all

I am interested in using the GeoServer Rest API and continually get the 
following error:

curl -u admin:geoserver -v -XPOST -H "Content-type: text/xml" -d 
"<workspace><name>acme</name></workspace>" 
http://localhost:8080/geoserver/rest/workspaces
* 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.21.4 (i386-pc-win32) libcurl/7.21.4 zlib/1.2.5
> Host: localhost:8080
> Accept: */*
> Content-type: text/xml
> Content-Length: 40
>
< HTTP/1.1 405 Method Not Allowed
< Allow: GET
< Date: Fri, 18 Mar 2011 03:47:21 GMT
< Server: Noelios-Restlet-Engine/1.0..8
< Transfer-Encoding: chunked
<
* Connection #0 to host localhost left intact
* Closing connection #0

I have checked that rest is installed and I can confirm that the  
rest-2.0.2.jar is installed in WEB-INF/lib.  Is this all I need do to install 
rest?

I have also enabled anonymous get as per the example in the rest.properties 
file.

Is there something I have missed?

Really appreciate any help

Kind regards

David

[cid:[email protected]]

  Dr David Miron
  IT Tools Manger
  Australian Biosecurity Intelligence Network
  A Commonwealth Government NCRIS funded initiative.



                     Australian Biosecurity Online

Email: [email protected]<mailto:[email protected]>
Mobile: 0400616540
Address: School of Science and Technology, University of New England, Armidale 
NSW 2351

This e-mail (including any attachments) contains information that may be 
confidential and is only intended for the use of the person/s to whom it is 
addressed. If you are not the intended addressee, or you have received this 
e-mail in error, you must not disclose, copy or distribute it or use the 
information contained in it (or any attachments) in any way. In that case, 
please delete this message and any copies of it. If you have received this 
e-mail in error, please notify the Australian Biosecurity Intelligence Network 
by return e-mail.  Please also contact us if you have any doubts about the 
authenticity of this e-mail.  This e-mail (including any attachments) may also 
contain computer viruses or other defects. The Australian Biosecurity 
Intelligence Network (lead agent - CSIRO) is not liable for any loss or damage 
that may be caused by these viruses or defects.


<<inline: image001.jpg>>

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to