The request you requested is probably great for a GET request. No need to change it.
There are reasons to use one above the other: requests that change state on the server side (i.e. change data) should usually use POST; "read" requests must be GET.
This is due to the implicit security advantage, because you cannot harm by smuggling the URL to the userβs page (for example, displaying an image whose URL is listed on the admin page named deleteall.php ).
If your request simply retrieves data, you can stay perfectly with GET.
See this question for a detailed discussion of when to use it. GET vs POST in AJAX?
source share