j***@brother-bsh.com.cn
j***@brother-bsh.com.cn
  • 发布:2021-06-15 16:13
  • 更新:2023-02-04 13:58
  • 阅读:404

app平台request POST data字段设置arraybuffer,文档里说不支持,有什么方式可以实现吗

分类:uni-app

uni.request({
url: 'http://xxxxx',
method: 'POST',
data: arrayBuffer,//文档里说不支持
header: {
'content-type': 'application/ipp',
},
responseType: 'arraybuffer',
success(res) {

}
})

2021-06-15 16:13 负责人:无 分享
已邀请:
DCloud_Android_DQQ

DCloud_Android_DQQ

最好采用 json。text等常见请求体编码。

  • j***@brother-bsh.com.cn (作者)

    目前实际应用场景是发给打印机请求,需要用到application/ipp

    2021-06-15 17:22

hourglass

hourglass - 90It男

老哥,你的ipp请求咋写的啊?我通过http:xxx:631不起作用

要回复问题请先登录注册