I am debugging my http2-https requests that is sending a POST request with Transfer-encoding as chunked.
I want to write the whole request body to a file.
I tried with fastcgi with a php, but fastcgi will not populate post data when it is chunked. Also tired using the basic go http2 server using My journey into Go (GoLang): Day 20 - A go http/2 server example and importing httpdump utility, I am not succesful with this.
There’s not a built-in way to do this, but it looks like you are able to build from source? httputil.DumpRequest() should work fine. Be sure to pass true to the second argument.