I configure geoserver with a java utility, no curl needed at all, Java  
has all you need :-)

If you have problems coding with Java, please ask, I have simple to  
look up in my code.


Quoting Robert Hicks <[email protected]>:

> Thanks for the responses everyone! I am on Windows using DOS, sorry
> should have said that from the beginning. I just tried it using Cygwin
> and now it says 'No such datastore: gv,roads'. So I'm guessing that is
> further than I was before!
>
> Basically the end goal is to be able to automate the creation of many
> feature types and this seems like the best way. The tool I'm planning
> on writing is going to be in Java so that it can run anywhere but if
> cURL is not platform independent that may be a problem.
>
> On Sat, Aug 14, 2010 at 5:38 PM, Andrea Aime <[email protected]> wrote:
>> 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.
>>
>
>
>
> --
> web http://www.hyxspace.com
> aim hyx1138
>
> ------------------------------------------------------------------------------
> 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
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



------------------------------------------------------------------------------
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

Reply via email to