Apologies, wouldn't you know i hadn't added the REST plugin, for some 
reason i thought it was in by default im not sure why.

all working now, sorry about that.

-i


Le 08/03/2011 11:09, Ivan PRICE a écrit :
> Hi there,
>
> I've tried everything here so i'm admitting defeat, i'm trying to get 
> the simplest REST call working but keep coming up against
>
> 'HTTP/1.1 405 Method Not Authorised'
>
> i'm including the admin user/password in my curl request, and have 
> even tried enabling anonymous access to REST.
>
> Is there something busted in Geoserver 2.0.2 REST ? changing the 
> password in my request to a wrong one gives a bad password error.
>
> running on windows, Tomcat 6.0.32
>
> sample request:
>
> 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 MÚthode Non AutorisÚe
> < Allow: GET
> < Date: Tue, 08 Mar 2011 10:02:15 GMT
> < Server: Noelios-Restlet-Engine/1.0..8
> < Transfer-Encoding: chunked
> <
> * Connection #0 to host localhost left intact
> * Closing connection #0
>
> in geoserver (verbose) log just 4 lines:
>
> 2011-03-08 11:07:20,171 DEBUG 
> [security.RESTfulPathBasedFilterInvocationDefinitionMap] - Converted 
> URL to lowercase, from: '/rest/workspaces'; to: '/rest/workspaces' and 
> httpMethod= POST
> 2011-03-08 11:07:20,171 DEBUG 
> [security.RESTfulPathBasedFilterInvocationDefinitionMap] - ~~~~~~~~~~ 
> antPath= /** methodList= [Ljava.lang.String;@cc5819
> 2011-03-08 11:07:20,171 DEBUG 
> [security.RESTfulPathBasedFilterInvocationDefinitionMap] - method[0]: GET
> 2011-03-08 11:07:20,171 DEBUG 
> [security.RESTfulPathBasedFilterInvocationDefinitionMap] - Candidate 
> is: '/rest/workspaces'; antPath is /**; matchedPath=true; 
> matchedMethods=false
>
>
> any ideas would be appreciated
>
> thanks,
>
> -ivan
>
>

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to