From 54c6d4dc2bf3195fac0433b3b826e9d3f0a4ab93 Mon Sep 17 00:00:00 2001 From: anyueling Date: Tue, 21 Mar 2023 16:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=B8=8B=E8=BD=BD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=99=90=E5=88=B6=E4=B8=8E=E7=BA=A6=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: anyueling --- .../reference/apis/js-apis-request.md | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-request.md b/zh-cn/application-dev/reference/apis/js-apis-request.md index 2a0ff7f77f..2c7f84a272 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-request.md +++ b/zh-cn/application-dev/reference/apis/js-apis-request.md @@ -16,26 +16,9 @@ import request from '@ohos.request'; ## 限制与约束 -在开发FA模型下的应用程序时, 默认支持https,如果要支持http,需要在config.json里增加network标签,属性标识 "cleartextTraffic": true。即: - -```js -var config = { - "deviceConfig": { - "default": { - "network": { - "cleartextTraffic": true - } - //... - } - } -} -``` - -在开发stage模型下的应用程序时,不涉及属性标识 "cleartextTraffic"。 - 下载服务器需要支持HTTP协议的head方法,能够通过Content-length获取下载数据大小,否则下载任务失败,可通过[on('fail')7+)](#onfail7)查看失败原因。 - +上传目前仅支持HTTP请求,不支持HTTPS。 ## 常量 **需要权限**:ohos.permission.INTERNET -- GitLab