当前位置:网站首页>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 .
边栏推荐
- 特征生成
- Numerical method for solving optimal control problem (0) -- Definition
- 恶魔奶爸 B1 听力最后壁垒,一鼓作气突破
- 恶魔奶爸 指南帖——简易版
- Awk processing JSON processing
- Meta force force meta universe system development fossage model
- Demon daddy guide post - simple version
- 201215-03-19—cocos2dx内存管理–具体解释「建议收藏」
- An overview of the latest research progress of "efficient deep segmentation of labels" at Shanghai Jiaotong University, which comprehensively expounds the deep segmentation methods of unsupervised, ro
- What is the reason for the abnormal flow consumption of 4G devices accessing the easygbs platform?
猜你喜欢
![Restapi version control strategy [eolink translation]](/img/65/decbc158f467ab8c8923c5947af535.png)
Restapi version control strategy [eolink translation]
![[C language] advanced pointer --- do you really understand pointer?](/img/ee/79c0646d4f1bfda9543345b9da0f25.png)
[C language] advanced pointer --- do you really understand pointer?

Intelligent software analysis platform embold

The new version of onespin 360 DV has been released, refreshing the experience of FPGA formal verification function

Google SEO external chain backlinks research tool recommendation

Redis - basic use (key, string, list, set, Zset, hash, geo, bitmap, hyperloglog, transaction)
Mysql子查询关键字的使用方式(exists)

Dry goods sharing | devaxpress v22.1 original help document download collection
Codesonar enhances software reliability through innovative static analysis

Goal: do not exclude yaml syntax. Try to get started quickly
随机推荐
Take the intersection of two sets
MySQL storage expression error
uva 12230 – Crossing Rivers(概率)「建议收藏」
反诈困境,国有大行如何破局?
object-c编程tips-timer「建议收藏」
恶魔奶爸 A1 语音听力初挑战
Codeforces Round #275 (Div. 2) C – Diverse Permutation (构造)[通俗易懂]
Redis - basic use (key, string, list, set, Zset, hash, geo, bitmap, hyperloglog, transaction)
刚开户的能买什么股票呢?炒股账户安全吗
Implement secondary index with Gaussian redis
What stocks can a new account holder buy? Is the stock trading account safe
Numerical method for solving optimal control problem (0) -- Definition
Virtual machine network configuration in VMWare
margin 等高布局
Object-C programming tips timer "suggestions collection"
Reinforcement learning - learning notes 8 | Q-learning
开户必须往账户里面赚钱吗,资金安全吗?
开户还得用身份证银行卡安全吗,我是小白不懂
解决uni-app中uni.request发送POST请求没有反应。
awk处理JSON处理