Re: can GET do for QUERY?

On Tue, Apr 28, 2015 at 11:59:18PM +0200, henry.story@bblfish.net wrote:
> I tried it and it works on my server FWIW
> 
> -----------
> $ telnet bblfish.net 80
> Trying 208.64.60.175...
> Connected to bblfish.net.
> Escape character is '^]'.
> GET / HTTP/1.1
> Host: bblfish.net
> Content-Type: text/query
> Accept: text/csv
> Content-Length: 42
> 
> select surname, givenname, email limit 10

Why not use POST then ? Passing a body in GET could confuse caches and
result in wrong data being retrieved. There are reasons why POST is a
different method.

Willy

Received on Wednesday, 29 April 2015 05:04:54 UTC