curl command a gzipped POST body to an apache server

前端 未结 2 2009
星月不相逢
星月不相逢 2021-01-02 08:40

With mod_deflate properly activated on my apache 2.2 server, I am trying to send a gzipped body via curl command line.

All tutorials I have seen say to add -H\'Conte

2条回答
  •  半阙折子戏
    2021-01-02 09:13

    Single line:

    echo '{"mydummy": "json"}' | gzip | curl -v -i --data-binary @- -H "Content-Encoding: gzip" http://localhost/mymodule
    

提交回复
热议问题