This sample shows how to use the TextInput component to enter parameters and use the Text component to display the return result.
In this example, we'll use SystemCapability.Communication.NetStack to initiate HTTP network requests to the destination URL based on specified configuration.
Usage
When starting the sample application, configure the network request by specifying the destination URL, request mode, and request parameters.
Click OK. The request result page is displayed.
Click Back to return to the configuration page.
NOTE: You can compile the http module into a .tgz package depending on your need.
Access to the Internet: ohos.permission.INTERNET
N/A
This sample can only be run on standard-system devices that use the Rockchip RK3568 chip.
This sample demonstrates the stage model, which supports only the SDK of API version 10 (SDK version: 4.0 Release).
DevEco Studio 4.0 Release must be used.
This sample requires network connection throughout the entire process.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Комментарий ( 0 )