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
On the off chance, that you're only interested in getting at the content on the wire (headers, body etc), you might want to give wireshark a go.
This has the advantage of not having to change any code, though if enabling logging through code was what you're after, this answer is not applicable.
In Linux you can run the VM under strace:
strace -o strace.out -s 4096 -e trace=network -f java ...