Hi again, As I said in my first post
> I'm trying to use the Rest API with cURL to transfer postgis data to > Geoserver. > For that I'm following the REST configuration examples at Geoserver > Documentation > (http://docs.geoserver.org/stable/en/user/rest/examples/curl.html) Now I'm stucked in a PUT operation and appreciate any help I was able to add a postgis table/view at Geoserver, with this command line: /curl -v -u admin:**** -XPOST -H "Content-type: text/xml" -d "<featureType><name>v_spofproc_geo</name></featureType>" http://localhost:8080/geoserver/rest/workspaces/acme/datastores/spo/featuretypes/ Know I would like to update the same postgis table and I just replaced the POST for PUT, like this: /curl -v -u admin:**** -XPUT -H "Content-type: text/xml" -d "<featureType><name>v_spofproc_geo</name></featureType>" http://localhost:8080/geoserver/rest/workspaces/acme/datastores/spo/featuretypes/ but I get an error: /HTTP/1.1 405 Method Not Allowed/ > About to connect() to localhost port 8080 (#0) > * Trying ::1... > * Connected to localhost (::1) port 8080 (#0) > * Server auth using Basic with user 'admin' >> PUT /geoserver/rest/workspaces/acme/datastores/spo/featuretypes HTTP/1.1 >> Authorization: Basic YWRtaW46Z2Vvc2VydmVy >> User-Agent: curl/7.29.0 >> Host: localhost:8080 >> Accept: */* >> Content-type: text/xml >> Content-Length: 54 >> > * upload completely sent off: 54 out of 54 bytes > < HTTP/1.1 405 Method Not Allowed > < Server: GlassFish Server Open Source Edition 4.1 > < X-Powered-By: Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition > 4.1 Java/Oracle Corporation/1.8) > < Allow: POST, GET > < Date: Tue, 03 Nov 2015 12:18:11 GMT > < Server: Noelios-Restlet-Engine/1.0..8 > < Transfer-Encoding: chunked > < > * Connection #0 to host localhost left intact I try to add a space at XPUT (X PUT), but had the same result Thanks in advance, Pedro -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Rest-Api-Adding-a-PostGIS-database-tp5233905p5234150.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
