当前位置:网站首页>Solve the problem of uni in uni app Request sent a post request without response.
Solve the problem of uni in uni app Request sent a post request without response.
2022-07-07 21:37:00 【No Bug】
First, in the postman It is tested that the request can be sent and the return data can be received .

And then in uni-app Use uni.request send out POST There is no response to the request .
uni.request({
url: "http://1.14.142.212:8080/tobraille",
method: "POST",
data: {
text: "hello get",
language: "en-us"
}
});
After some inquiry, I know uni.request send out POST Request needs to add
header: {
'content-type': 'application/json;charset:utf-8'
}
After adding
uni.request({
url: "http://1.14.142.212:8080/tobraille",
method: "POST",
header: {
'content-type': 'application/json;charset:utf-8'
},
data: {
text: "hello get",
language: "en-us"
}
});
Can be successfully sent .
边栏推荐
- EasyUI date control emptying value
- Unity3d 4.3.4f1执行项目
- MySQL storage expression error
- Is private equity legal in China? Is it safe?
- Devil daddy B1 hearing the last barrier, break through with all his strength
- The maximum number of meetings you can attend [greedy + priority queue]
- Focusing on safety in 1995, Volvo will focus on safety in the field of intelligent driving and electrification in the future
- The little money made by the program ape is a P!
- 2022 how to evaluate and select low code development platforms?
- Devil daddy A0 English zero foundation self-improvement Road
猜你喜欢
MySQL约束之默认约束default与零填充约束zerofill

2022 how to evaluate and select low code development platforms?

恶魔奶爸 B3 少量泛读,完成两万词汇量+

Wechat official account oauth2.0 authorizes login and displays user information
![[C language] advanced pointer --- do you really understand pointer?](/img/ee/79c0646d4f1bfda9543345b9da0f25.png)
[C language] advanced pointer --- do you really understand pointer?

Problems encountered in installing mysql8 for Ubuntu and the detailed installation process

Validutil, "Rethinking the setting of semi supervised learning on graphs"

How to meet the dual needs of security and confidentiality of medical devices?

Redis - basic use (key, string, list, set, Zset, hash, geo, bitmap, hyperloglog, transaction)

Jenkins user rights management
随机推荐
object-c编程tips-timer「建议收藏」
Codeforces Round #275 (Div. 2) C – Diverse Permutation (构造)[通俗易懂]
Demon daddy B2 breaks through grammar and completes orthodox oral practice
FatMouse' Trade (Hangdian 1009)
反诈困境,国有大行如何破局?
Static test tool
恶魔奶爸 A0 英文零基础的自我提升路
Insufficient permissions
[uvalive 6663 count the regions] (DFS + discretization) [easy to understand]
DataTable数据转换为实体
开户必须往账户里面赚钱吗,资金安全吗?
L2:ZK-Rollup的现状,前景和痛点
Restapi version control strategy [eolink translation]
Can Huatai Securities achieve Commission in case of any accident? Is it safe to open an account
EasyUI date control emptying value
Meta force force meta universe system development fossage model
[matrix multiplication] [noi 2012] [cogs963] random number generator
C language helps you understand pointers from multiple perspectives (1. Character pointers 2. Array pointers and pointer arrays, array parameter passing and pointer parameter passing 3. Function point
Codeforces 474 F. Ant colony
NVR硬盘录像机通过国标GB28181协议接入EasyCVR,设备通道信息不显示是什么原因?