I am using jersey to generate http requests and I would like to be able to see the request before it is sent (for debugging purposes).
For example:
WebResource resource = client.resource(url);
resource.header("aa", "bb");
resource.getHeaders(); // Error: how can I do it?
thanks
You can use LoggingFilter, as shown here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With