News for hackers. Stuff that matters.
Re:The HTTP QUERY Method specification by ta-run on Sunday May 28, 2023 @12:44AM (#36101203)
Aha, got it. Thanks for the explanation.

So, the request content/body can have "non-sql-like" queries? can it be GraphQL? or even plain English? - of course, assuming that the server knows how to resolve the query.

Re:The HTTP QUERY Method specification by kortex on Sunday May 28, 2023 @12:58AM (#36101280)
Yep. This is valid

    QUERY /graphql
    Content-Type: text/graphql
    {too lazy to write valid gql}
so is this

    QUERY /elasticsearch
    Content-Type: application/json
    {"name": "alice"}
Even this

    QUERY /my-ai-image-gen
    Content-Type: text/plain
    Draw me a picture of a cat
It's entirely up to the software to decide how to handle the request.
Re:The HTTP QUERY Method specification by ta-run on Sunday May 28, 2023 @01:39AM (#36101462)
Great, thank you!