

To do this, add a res/xml/network_security_config.xml file defining the network configuration rules of the application: In this case, it is easy for you to authorize the use of “user” CA certificates. You have the source code of the application.
#Spector pro android android
As alternatives, there is in particular mitmproxy, an open-source command-line tool or HTTP toolkit very easy to use in a paid version.Īllow access to Charles’ certificate by an Android application We suggest using Charles Proxy because it is an easy-to-use and fairly complete tool, but be aware that other proxy servers can be used for this use case. In our case, what interests us the most is that Charles makes it possible to save the client-server exchanges recorded in the form of a. It allows you to test the stability of an application with network conditions, or server problems (throttling, repeated requests, no-cache, etc.). In addition, to act as an SSL Proxy, it offers to rewrite on the fly the headers (or even the content!) of the requests exchanged. In addition, if the client accepts the CA certificate from the proxy which will thus act as a Certificate Authority, the proxy will be able to decrypt HTTPS requests to inspect their content.Ĭharles Proxy is a proxy server whose use is oriented for mobile developers. This allows the proxy to observe the different requests that are exchanged. The latter sends the requests to the proxy which is then responsible for communicating with the server. The other advantage is that we are able to analyze mobile applications using an SSL proxy, provided that the application authorizes a certain network configuration (see Authorizing access to Charles’ certificate by the application ).ĬharlesProxy, the developer’s Swiss army knifeĪ proxy is a server that acts as an intermediary between the server and the client. This allows us to build more precise RequestMaps, which go beyond the home page while being more numerically sober.
#Spector pro android archive
Thus, rather than requesting an entire test of the webpagetest suite, you can very well choose to save an HTTP Archive file (.har) on your own PC. HAR are JSON files used to record traffic captured by various web analysis tools such as DevTools. RequestMap developer Simon Hearne also provides the HAR mapper tool which generates the same request maps from HAR files. What about mobile apps? Our approach to generating the request map for mobile applications is simple. The problem is that the tool is made available to audit websites.
