<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Charles _ 扒房网</title>
	<atom:link href="https://www.gxjlyf.com/tag/charles/feed" rel="self" type="application/rss+xml" />
	<link>https://www.gxjlyf.com</link>
	<description>手机系统教程_手机软件教程_手机app使用教程_电脑软件教程_电脑系统教程</description>
	<lastBuildDate>Sat, 25 Jun 2022 15:52:32 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Charles 如何实现数据抓包。</title>
		<link>https://www.gxjlyf.com/468517.html</link>
		
		<dc:creator><![CDATA[bafang18]]></dc:creator>
		<pubDate>Sat, 25 Jun 2022 15:52:32 +0000</pubDate>
				<category><![CDATA[其他教程]]></category>
		<category><![CDATA[Charles]]></category>
		<category><![CDATA[抓包]]></category>
		<guid isPermaLink="false">https://www.chuwenyu.com/468517.html</guid>

					<description><![CDATA[相信很多朋友都遇到过以下问题，就是Charles 如何实现数据抓包。。针对这个问题，今天小编就搜集了网上的相关 ...]]></description>
										<content:encoded><![CDATA[<p>相信很多朋友都遇到过以下问题，就是Charles 如何实现数据抓包。。针对这个问题，今天小编就搜集了网上的相关信息，给大家做个Charles 如何实现数据抓包。的解答。希望看完这个教程之后能够解决大家Charles 如何实现数据抓包。的相关问题。</p>
<p>   相信很多做移动开发的技术人员，后续做调试的时候，都会因为要分析网络封包而倍感头疼，常常花很多时间去抓包，而结果又不理想。为此，我们可以使用 Charles 来抓包，它抓出来的数据简洁明了，但是很多人不懂怎么操作，所以，下面来讲解 Charles 怎么抓包。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155222-62b72f36cfd08.png" /></p>
<h2>Charles 如何实现数据抓包？</h2>
<p>1. 想要用 Charles 抓包，就得先安装证书。我们点击&ldquo;Help&rdquo;菜单中的&ldquo;SSL Proxying&rdquo;和它子菜单中的&ldquo;install charles root Certificate&rdquo;。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155223-62b72f375477b.png" /></p>
<p>2. 此时，Charles 便会弹出证书窗口。点击&ldquo;安装证书&rdquo;按钮，并根据安装向导进行安装，再点击&ldquo;确定&rdquo;按钮，从而完成 Charles 抓包的证书安装。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155224-62b72f3815f1a.png" /></p>
<p>3. 然后，我们还需要配置 HTTP(S) 数据包。点击 Charles&ldquo;Proxy&rdquo;菜单的&ldquo;SSL Proxying Settings&rdquo;，开始对 Charles 抓包证书进行配置。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155224-62b72f38bd948.png" /></p>
<p>4. 勾选&ldquo;Enable SSL Proxying&rdquo;，点击&ldquo;OK&rdquo;按钮。并在 Charles 弹出的小窗口中，在 Host 和 Port 对应的文本框中输入&ldquo;*&rdquo;再点击&ldquo;OK&rdquo;按钮，如下图所示。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155225-62b72f3976301.png" /></p>
<p>5. 再切换至 Charles 的&ldquo;Help&rdquo;菜单，点击&ldquo;Local IP Address&rdquo;。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155226-62b72f3a3d835.png" /></p>
<p>6. 在弹出的窗口中，将 Charles 的 IP 地址记住，下一步会用到。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155227-62b72f3b0eab1.png" /></p>
<p>7. 接下来，我们用手机打开配置代理，将服务器和端口设置和电脑一样。因为这样做，后续 Charles 才能抓包。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155227-62b72f3bc0e66.png" /></p>
<p>8. 在手机的浏览器中输入&ldquo;chls.pro/ssl&rdquo;，它便会弹出如下图的小窗口提示，我们直接点击&ldquo;允许&rdquo;。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155228-62b72f3c57732.png" /></p>
<p>9. 接着，我们点击&ldquo;安装&rdquo;即可完成 Charles 抓包的配置。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155228-62b72f3ce37e9.png" /></p>
<p>10. Charles 抓包的证书安装和配置都完成后，我们接着将防火墙关闭，不然会导致 Charles 抓包失败。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155229-62b72f3d7b10c.png" /></p>
<p>11. 最后，我们回到 Charles 主界面，点击&ldquo;抓包&rdquo;的红色按钮，Charles 便开始抓包。抓包完成后，我们可以在界面下方查看 Charles 抓包的详细内容。当然了，如果想清空当前的抓包数据，也可以点击清空按钮一键删除。</p>
<p><img decoding="async" src="https://dz.cwhello.com/wp-content/uploads/2022/06/20220625155230-62b72f3e6b28e.png" /></p>
<p>Charles 抓包之前，我们要先安装证书和完成证书的配置，并将电脑的防火墙关闭再开始抓包。</p>

<p><img src="https://www.gxjlyf.com/postviews/468517.png" /></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
