Charles Debugging provider does not detect traffic generated by Eclipse?

I am trying to debug a Java class that Jsoup uses to send and receive http traffic using Charles Debugging proxy, but Charles does not detect any traffic. What I want to do is to check the traffic that my application sends and receives (basically, sends).

I know that the connection works, since I can print the HTML returned by my requests, and I set the "Active Provider" network connection to native, port and host that I installed in Charles .... is something missing? Is there a better way to do this?

I must add that the Eclipse message for checking for updates causes Charles to select this traffic !?

Thanks in advance!

+3
source share
2 answers

I think the problem is how you install the proxy. It looks like you are doing this under "Settings" β†’ "General" β†’ "Network Connections". This sets up a proxy for the Eclipse process itself and not what you want. You need to install the proxy server in the new process that you start from Eclipse. This happens in the launch configuration. There is no special interface for setting proxy information in the launch configuration, but all these are just system properties.

Here is a resource that you can read for which system properties you need to set:

http://www.rgagnon.com/javadetails/java-0085.html

+3
source

java.net.HTTPURLConnection . , java.net.Proxy Jsoup.

+3

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


All Articles