I use elasticsearch, and the RESTful API supports reading bodies in GET requests for search criteria.
I'm currently doing
response = urllib.request.urlopen(url, data).read().decode("utf-8")
If data present, it returns POST, otherwise GET. How can I force a GET even though I include the data (which should be in the body of the request according to POST)
Nb: I know that I can use the source property in Url, but the executed queries are complex and the definition of the query is verbose, which leads to extremely long queries.
Basic source share