Monitoring HTTP Requests and Websites in Netbeans

I am writing an HTTP client and WebSocket in Java to connect to any HTTP server.

I wrote something similar in js before and was able to use the developer toolbar network tab in firefox and chrome to see which HTTP requests were sent and which Websocket messages were exchanged.

My question is: is there any tool or plugin for Netbeans to view these same requests and messages?

+5
source share
2 answers

If you intend to monitor / register / check outgoing and incoming connections from your instrument, you need to somehow intercept the traffic.

Wireshark can help with this. If the transport exceeds SSL, then Wireshark may not help.

You can use reverse proxy like charles, intercept traffic and check it there. https://www.charlesproxy.com/documentation/proxying/reverse-proxy/

In addition, a similar question arises here: Register all network interactions of a Java application

Hope this helps. Also, not quite sure why you need the netbeans plugin? When the application is launched, it will do it in its own JVM, so if you do not plan to package the plugin with your tool, I don’t see how you can use it.

0
source

Netbeans comes with an HTTP monitor, which you can access through Window β†’ HTTP Monitor.

Netbeans HTTP Monitoring

+3
source

Source: https://habr.com/ru/post/1266378/


All Articles