To make a GET request using Curl, run the curl command followed by the target URL. so I recommend you to use build-in geoserver method instead of using jQuery AJAX. The $.ajax () Function. DataTables has a number of default parameters which you can override using this option. The response data is parsed using JavaScript. JavaScript Get Data From Fetch() API Example How to Use the JavaScript Fetch API to Get Data? Now, JavaScript has its own built-in way to make API requests. Intro to AJAX and XHR — Network Requests in JavaScript Javascript HTTP GET Request function httpGet(theUrl) { let xmlHttpReq = new XMLHttpRequest(); xmlHttpReq.open("GET", theUrl, false); xmlHttpReq.send(null); return xmlHttpReq.responseText; } console.log(httpGet('https://jsonplaceholder.typicode.com/posts')); This function will execute when you click the edit button then an update form will be loaded with value based on passing id. Fetching data from the server JavaScript/AJAX | How do I send an HTTP GET request? log (data)}). If you are using jQuery, you can easily do this by setting the async option to false. POST can also be used to get some data from the server. Ajax request is a basic requirement of any php project, we are always looking for without page refresh data should store in database and it's possible only by jquery ajax request. Now, JavaScript has its own built-in way to make API requests.