How to enable SSL debugging on the Android platform?

前端 未结 4 1105
北海茫月
北海茫月 2021-02-04 04:59

Is there something similar to setting -D javax.net.debug=ssl at the command line for Java desktop applications, but for the Android? I\'ve tried setting it in code

4条回答
  •  梦谈多话
    2021-02-04 05:28

    If you are using Apache HttpClient (by importing a jar file), you can enable logging by setting environmental variables in Eclipse. If you use Commons Logging, the logs are printed to the Console. However this only works if you are running your app in the emulator and not on the device. Not sure of this helps.

    See http://hc.apache.org/httpcomponents-client-ga/logging.html

提交回复
热议问题