G
G
godmodeon082017-08-19 21:37:34
Java
godmodeon08, 2017-08-19 21:37:34

How to find out the request and response?

Hello! I have a java code that sends get/post requests. I call everything from under unit tests. (intellij idea community environment) Please tell me the most optimal tool for traffic sniffing so that you can get the full request that my program makes and the answer. (full request/response with header and body).
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
protven, 2017-08-19
@godmodeon08

wireshark

Z
Zakharov Alexander, 2017-08-20
@AlexZaharow

When starting the Java virtual machine, set the proxying parameters https://stackoverflow.com/questions/120797/how-do-... and wrap all requests to fiddler (you need to enable the option to allow remote connection in fiddler). It is fiddler that will show all http request/response in a good way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question