Stefano Costa-4 wrote > Hi Pedro, > > On Mon, Nov 2, 2015 at 1:25 PM, Pedro <
> pedro.ferro@ > > wrote: >> >> Than I run the command: >> /curl -v -u admin:geoserver -XPOST -T spo.xml -H "Content-type: text/xml" >> http://localhost/geoserver/rest/workspaces/acme/datastores/ >> >> And get this error: >> /curl: Can't open 'spo.xml'!/ >> >> I imagine that I'm saving the xml file in the wrong place... >> > > Looks like curl itself is unable to locate the file... is spo.xml in the > current working directory when you execute the curl command? > If not, use the absolute path like this: > > curl -v -u admin:geoserver -XPOST -T /path/to/spo.xml ... > > Hope this helps. > > -- > > Best regards, > Stefano Costa Thanks Stefano. Yes, it was related with that... Just change the prompt to the directory where the file was and voilá, works! Thanks again for the help and like I said at first "I known my doubts can be annoying".... -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Rest-Api-Adding-a-PostGIS-database-tp5233905p5233943.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
