[GIS] How to start with Geoserver REST api

geoserverrest

i want to start use Geoserver REST api, but have no idea how to use it.
In Geoserver docs i found some examples but then use cURL. Google says what cURL its console comand utilite. So i dont understand how to use it. For example if i want to make user autification using ExtJs or another javascript framework how can i use cURL. Or i gonna do somthing else?

Best Answer

You don't have to use cURL. You can use anything that can interact with the HTTP protocol. This includes your web browser, Linux shell (or PowerShell in Windows), PHP, Java etc. If you want to use Python you will probably want to download the Requests library so make things easier because, while the standard library can handle REST requests, it is a pain. Since you don't have to use cURL, you therefore don't need to worry about trying to call cURL from Java (or anything else) as per your question. Just follow the examples in your link but couch the requests in the syntax appropriate to your chosen language/utility.

Having a command-line interface is handy for quick commands, but being able to write scripts is good if you want to manage a suite of servers and need to automate the work, but really your choice will be down to what you are familiar with (so for me that would be Python rather than cURL or Java but somebody else might prefer PHP for instance - it doesn't matter).