Hi guys,
I am trying the cURL command to upload zipped file but not sure why it is
not working?
I am implementing the following code to upload an existing shapefile as per
the
documentation<http://docs.geoserver.org/stable/en/user/restconfig/rest-config-examples/rest-config-examples-curl.html#uploading-a-shapefile>
,
* curl -u admi PUT 'Content-type: application/zip' --data-binary
@/var/www/geo/shapefile/zip/Poa_horridula.zip
http://localhost:8080/geoserver/rest/workspaces/acme/datastores/Poa_horridula/Poa_horridula.zip
*
But I am getting following error,
> curl: (6) Couldn't resolve host 'Content-type'
>> No such datastore: acme,Poa_horridula
The document says that the curl code will create the datastore then why am
I getting this error?
**UPDATE: I changed the code to upload a zip file but I am still not able
to upload any shapefile.**
Where am I going wrong?
--
Thanks & Regards
Smaran Harihar
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users