中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
微信扫码分享
import { rcp } from '@kit.RemoteCommunicationKit'; import { BusinessError } from '@kit.BasicServicesKit'; const session = rcp.createSession(); session.put("https://www.test.com:8806/test/put", "data to send").then((response) => { console.info(`Response succeeded: ${response}`); }).catch((err: BusinessError) => { console.error(`Response err: Code is ${err.code}, message is ${JSON.stringify(err)}`); });