当前位置:网站首页>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 .
边栏推荐
- Automatic classification of defective photovoltaic module cells in electronic images
- 特征生成
- Codeforces Round #275 (Div. 2) C – Diverse Permutation (构造)[通俗易懂]
- Use camunda to do workflow design and reject operations
- Google SEO external chain backlinks research tool recommendation
- What are the official stock trading apps in the country? Is it safe to use
- Meta force force meta universe system development fossage model
- How to integrate Google APIs with Google's application system (1) -introduction to Google APIs
- Demon daddy A3 stage near normal speed speech flow initial contact
- Tupu digital twin coal mining system to create "hard power" of coal mining
猜你喜欢
95年专注安全这一件事 沃尔沃未来聚焦智能驾驶与电气化领域安全
你可曾迷茫?曾经的测试/开发程序员,懵懂的小菜C鸟升级......
L2:ZK-Rollup的现状,前景和痛点
Ubuntu安装mysql8遇到的问题以及详细安装过程
ISO 26262 - considerations other than requirements based testing
使用枚举实现英文转盲文
Usage of MySQL subquery keywords (exists)
Demon daddy B3 read extensively in a small amount, and completed 20000 vocabulary+
SQL注入报错注入函数图文详解
Implement secondary index with Gaussian redis
随机推荐
HOJ 2245 浮游三角胞(数学啊 )
Dry goods sharing | devaxpress v22.1 original help document download collection
I have to use my ID card to open an account. Is the bank card safe? I don't understand it
Virtual machine network configuration in VMWare
恶魔奶爸 A1 语音听力初挑战
object-c编程tips-timer「建议收藏」
Codeforces 474 F. Ant colony
Codeforces Round #296 (Div. 2) A. Playing with Paper[通俗易懂]
Wechat official account oauth2.0 authorizes login and displays user information
Take the intersection of two sets
Problems encountered in installing mysql8 for Ubuntu and the detailed installation process
The new version of onespin 360 DV has been released, refreshing the experience of FPGA formal verification function
[matrix multiplication] [noi 2012] [cogs963] random number generator
Demon daddy B2 breaks through grammar and completes orthodox oral practice
MySQL约束之默认约束default与零填充约束zerofill
Is it safe to open an account online now? I want to know where I can open an account in Nanning now?
Redis - basic use (key, string, list, set, Zset, hash, geo, bitmap, hyperloglog, transaction)
Reinforcement learning - learning notes 8 | Q-learning
L2:ZK-Rollup的现状,前景和痛点
Navicat connect 2002 - can't connect to local MySQL server through socket '/var/lib/mysql/mysql Sock 'solve