Robert Hicks ha scritto: > Okay so I have cURL installed locally and I'm trying to run some tests > against an instance of Geoserver running on another server. I'm trying > to create a datastore remotely using the below command (copied from > http://docs.geoserver.org/stable/en/user/extensions/rest/rest-config-examples-curl.html) > > My command: curl -u admin:password -XPUT -H "Content-type: > application/zip" --data-binary @states.zip > http://10.10.0.20:8001/geoserver/rest/workspaces/workspace/datastores/roads/states.shp
Hmmm... using the command line I often have to put the url between double quotes: curl -u admin:password -XPUT -H "Content-type: application/zip" --data-binary @states.zip "http://10.10.0.20:8001/geoserver/rest/workspaces/workspace/datastores/roads/states.shp" Not sure if this is needed by curl as well, but may be worth a try. Cheers Andrea > If fails with: curl: no URL specified! > curl: try 'curl --help' or 'curl --manual' for more information > > So I tried --url http://10.10.0.20:8001/geoserver/rest, but I get the > same error. Anyone with experience using this gotten it to work? > > Thanks in advance! > -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
