<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Thiago Felix on Medium]]></title>
        <description><![CDATA[Stories by Thiago Felix on Medium]]></description>
        <link>https://medium.com/@thiago_felix?source=rss-bb424156bab6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oHIE4t1V7tyBBAKr6U9PYA.jpeg</url>
            <title>Stories by Thiago Felix on Medium</title>
            <link>https://medium.com/@thiago_felix?source=rss-bb424156bab6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:07:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thiago_felix/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to watch the requests of my mobile project?]]></title>
            <link>https://medium.com/profusion-engineering/how-to-watch-the-requests-of-my-mobile-project-bc38a2cd476a?source=rss-bb424156bab6------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc38a2cd476a</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[charles-proxy]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[android-emulator]]></category>
            <dc:creator><![CDATA[Thiago Felix]]></dc:creator>
            <pubDate>Mon, 10 May 2021 13:02:11 GMT</pubDate>
            <atom:updated>2021-05-10T13:02:11.169Z</atom:updated>
            <content:encoded><![CDATA[<p>To see what comes and goes on your device you can use Charles Proxy. Charles is an HTTP proxy/HTTP monitor/Reverse Proxy that lets us watch all of the HTTP and SSL/HTTPS traffic between our machine or device and the Internet. Kind of like a man in the middle of the server and client, checking everything that passes through. Once set, we can check every information sent and received by the client.</p><p>In our context, we are using Charles to debug our React Native application. In this way, we can see the requests made by the simulator or by real devices. Not only the traffic monitoring, Charles Proxy has other features, such as redo requests, edit requests to try different inputs, breakpoints for debug purposes, and so on.</p><h3>Installation</h3><p>First of all, you need to install Charles Proxy on your computer.</p><h4>Ubuntu</h4><p>On Ubuntu you will add the public key;</p><pre>$ wget -q -O - https://www.charlesproxy.com/packages/apt/PublicKey | sudo apt-key add -</pre><p>Add the repository to your sources:</p><pre>$sudo sh -c &#39;echo deb https://www.charlesproxy.com/packages/apt/ charles-proxy main &gt; /etc/apt/sources.list.d/charles.list&#39;</pre><p>Then update your sources and install it:</p><pre>$ sudo apt-get update<br>$ sudo apt-get install charles-proxy</pre><h4>Fedora</h4><p>On Fedora you will add the repository running with root permissions:</p><pre>$ cat &lt;&lt;EOF &gt; /etc/yum.repos.d/Charles.repo<br>[charlesproxy]<br>name=Charles Proxy Repository<br>baseurl=https://www.charlesproxy.com/packages/yum<br>gpgkey=https://www.charlesproxy.com/packages/yum/PublicKey<br>EOF</pre><p>Then use dnf to install charles-proxy package.</p><pre>$ sudo dnf install charles-proxy</pre><h3>Setting Charles</h3><ol><li>Let’s see if the proxy settings are set as below (Proxy &gt; Proxy Settings)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*IR7yNOYKJmMmj4e0MSWjOQ.png" /><figcaption>Image 1: Proxy Settings. The default port is 8888.</figcaption></figure><p>2. You can set the locations you want to listen to (Proxy &gt; SSL Proxying Settings)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*jbYcgDkefwR7S09HPqoWIg.png" /><figcaption>Image 2: Locations to watch. You can add a * to watch all locations.</figcaption></figure><p>3. We need to add the device(s) we wanna spoof (Tools &gt; DNS Spoofing…)</p><ul><li>On Host Name put the IP of your device</li><li>On Address you put the IP of your computer</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*KQ0mzw5wfIl8jCzYvI-Eog.png" /><figcaption>Image 3: DNS Spoofing settings. In my case, the Android simulator was running on 10.0.2.2</figcaption></figure><h3>Setting your mobile device</h3><ol><li>We need to add a proxy to our network. Go to the WI-FI settings and open the advanced settings of your WI-FI network. Doing it, you’ll not be able to navigate on internet until install the certificate.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*0zbRCj0-0O9gBM7Y.png" /><figcaption>Image 4: WI-FI proxy. Add the IP of your computer as Proxy hostname and set the same port of Charles’ configuration, on our case, 8888.</figcaption></figure><p>2. You need to allow the device on Charles:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*VK_-_26PoGnVH6Fj40QPnw.png" /><figcaption>Image 5: Allow connection from your device</figcaption></figure><p>3. Go to <a href="https://chls.pro/ssl">https://chls.pro/ssl</a> and download the certificate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*ek0J6dMnmPfgzcer.png" /><figcaption>Image 6: Charles SSL certificate download page.</figcaption></figure><p>3. Depending on your Android version, you will need to install it on your device settings. You can search for “CA Certificates”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*m5IQXBOfYDx-SkXM.png" /><figcaption>Image 7: CA Certificate installation. After installing it, you’ll be able to navigate through the internet with Charles Proxy opened.</figcaption></figure><h3>Let’s try it!</h3><p>OK! Now we have our Charles Proxy setup. Let’s have a try. Ensure that you have your React Native environment <a href="https://reactnative.dev/docs/environment-setup">correctly set up</a>. Now, you can clone our sample project:</p><pre>$ git clone <a href="/service/mailto:git@github.com">git@github.com</a>:Thiagotrfm/charlesDemo.git</pre><p>Go into the project folder and install the dependencies:</p><pre>$ yarn install</pre><p>Now let’s run it on the device we have set before:</p><pre>$ yarn android --deviceId=(YOUR DEVICE ID)</pre><p>To get your device’s ID you can run:</p><pre>$ adb devices</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*EO2j7dZoIMWmsKO9jl7QQg.jpeg" /><figcaption>Image 8: Kanye West quotes application</figcaption></figure><p>And here it is. Every time you press “reload” the app requests for <a href="http://api.kanye.rest/">http://api.kanye.rest</a> a new Kanye West’s quote. We can see them on Charles:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aIyhU8V0Lgnn0Z9Dk7KbQg.png" /><figcaption>Image 9: Overview of your request</figcaption></figure><p>On the “Overview” tab you can see the headers and other information about of your request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ri4k7ssB9GMczyrQNqTviA.png" /><figcaption>Image 10: data information</figcaption></figure><p>Select a request on the side menu and select the “Content” and you’ll be able to see the content that was sent and what you received from our API.</p><p>That’s pretty much it for this article. Now you know how to watch the traffic of your device and debug your mobile application using Charles Proxy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc38a2cd476a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/profusion-engineering/how-to-watch-the-requests-of-my-mobile-project-bc38a2cd476a">How to watch the requests of my mobile project?</a> was originally published in <a href="https://medium.com/profusion-engineering">ProFUSION Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>