3 ms·
”there's no reason you can't move the query from a POST body to a GET query string.” There’s disagreement on whether it is within the http spec (https://stacko
by Someone 8y ago
”there's no reason you can't move the query from a POST body to a GET query string.”
There’s disagreement on whether it is within the http spec (https://stackoverflow.com/questions/978061/http-get-with-request-body https://stackoverflow.com/questions/978061/http-get-with-req...), but you can also send a body with a GET request, and you wouldn’t be alone in that; Elastic uses it, too (https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html https://www.elastic.co/guide/en/elasticsearch/reference/curr...)
- merb 8y agowell you do not need a request body, you can actually put a json string into a get query string. something like: example.com?body=%7B%22hello%22%3A%22world%22%7D it's wierd, but I've seen that a lot.
- seangrogg 8y agoYeah, I originally was going to put that into my reply but I figured talking about the fact that GET bodies are technically doable would open its own can of worms.