I'm debugging some code that was written using java.net.HttpURLConnection
. I'd like to set a property to enable logging of HTTP Request and Response headers as is possible in the Apache HTTP Components library with the org.apache.http.headers
category.
Is this possible with HttpURLConnection? Do I need to breakout Charles Proxy or Wireshark?