From 721205d0b638a843435c53ffa0362e45e7c1490f Mon Sep 17 00:00:00 2001 From: liugang9704 <2745340733@qq.com> Date: Fri, 21 Nov 2025 16:32:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update:=20=E5=9C=A8README=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E6=B7=BB=E5=8A=A0=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 6af6ce6..03bb428 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,12 @@ RCP指的是远程通信平台(remote communication platform),RCP提供网 应用需要访问互联网,需要使用网络权限。 `ohos.permission.INTERNET` +## 使用说明 +1. 点击“基础请求”按钮跳转至二级页面,点击“发起PATCH请求”按钮,可发起PATCH请求;点击“设置会话中URL的基地址”按钮,可设置请求的BaseUrl。 +2. 点击“多表单提交”按钮跳转至二级页面,在表单一中输入姓名;切换至表单二中选择兴趣爱好。点击“提交”按钮,可进行表单提交并展示相关参数。 +3. 点击“请求与响应拦截”按钮跳转至二级页面,点击“获取图片”按钮,获取未经拦截的图片地址;开启请求缓存开关,再点击“获取图片”按钮,可获取经拦截处理后的图片地址。 +4. 点击“DNS设置”按钮跳转至二级页面,点击“自定义DNS服务器”按钮,可对DNS服务器进行自定义;点击“自定义静态DNS”按钮,可设置静态的DNS服务器;点击“配置HTTP上的DNS”按钮,可配置HTTP上的DNS设置,从而通过HTTPS端点实现安全的DNS解析。 +5. 点击“捕获有关HTTP请求/响应流的详细信息”按钮跳转至二级页面,点击“配置详细信息收集”按钮后,可进行相关设置并展示设置的参数。 ## 约束与限制 * 本示例仅支持标准系统上运行,支持设备:华为手机。 -- Gitee From 1dbfcf119fb3ac29655ea9cde45b14ae4c0409ac Mon Sep 17 00:00:00 2001 From: liugang9704 <2745340733@qq.com> Date: Fri, 21 Nov 2025 16:44:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update:=20=E5=9C=A8README=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E6=B7=BB=E5=8A=A0=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.en.md b/README.en.md index 684d73f..112e67d 100644 --- a/README.en.md +++ b/README.en.md @@ -44,6 +44,12 @@ Remote communication platform (RCP) provides network data request functionalitie ## Required Permissions ohos.permission.INTERNET: allows an app to access Internet. +## How to Use +1. Click the "Basic Request" button to jump to the secondary page. Click the "Initiate PATCH Request" button to initiate a PATCH request. Click the "Set the Base Address of the URL in the Session" button to set the requested BaseUrl. +2. Click the "Submit Multiple Forms" button to jump to the secondary page, and enter your name in Form One. Switch to Form Two and select your hobbies. Click the "Submit" button to submit the form and display the relevant parameters. +3. Click the "Request and Response Blocking" button to jump to the secondary page, and click the "Get Image" button to obtain the address of the image that has not been blocked. Turn on the request cache switch and then click the "Get Image" button to obtain the address of the image after interception processing. +4. Click the "DNS Settings" button to jump to the secondary page. Click the "Customize DNS Server" button to customize the DNS server. Click the "Customize Static DNS" button to set up a static DNS server. Click the "Configure DNS on HTTP" button to configure the DNS Settings on HTTP, thereby achieving secure DNS resolution through the HTTPS endpoint. +5. Click the "Capture Details about HTTP Request/Response Flow" button to jump to the secondary page. After clicking the "Configure Details Collection" button, you can make relevant Settings and display the parameters of the Settings. ## Constraints * The sample app is supported only on Huawei phones running the standard system. -- Gitee