Golang echo based server with gzip compression enabled and curl c program with gzip post data.
JSON post data after compression using zlib library and curl.
Run golang echo server.
$ go build
$ ./echocurltest
Compile c program and run.
curltest$ gcc main.c -lz -lcurl
curltest$ ./a.out