How to enable wire logging for a java HttpURLConnection traffic?

后端 未结 8 953
离开以前
离开以前 2020-11-27 04:56

I\'ve used Jakarta commons HttpClient in another project and I would like the same wire logging output but using the \"standard\" HttpUrlConnection.

I\'ve used Fiddl

8条回答
  •  生来不讨喜
    2020-11-27 06:03

    In Linux you can run the VM under strace:

    strace -o strace.out -s 4096 -e trace=network -f java ...

提交回复
热议问题