Skip to content

Instantly share code, notes, and snippets.

View yongchengzhao's full-sized avatar

ZhaoChengyong yongchengzhao

View GitHub Profile
@yongchengzhao
yongchengzhao / Postman-pre-request-request-formdata.js
Created December 9, 2021 06:19
Postman pre-request request formdata(在 Postman 的 pre-request 中发送表单请求)
const authReq = {
url: "http://10.215.xxx.xxx:18200/sys-auth/oauth/token",
method: "POST",
header: {
"Authorization": "Basic ZmF3a2VzOmZhd2tlc19zZWNyxxx="
},
body: {
mode: "formdata",
formdata: [
{key: "scope", value: "all"},