📜 Node 使用 代理服务器
使用 axios 即可
const res = await axios({
method: "post",
url,
headers,
data: body, // 请求参数 放在这里
proxy: {
// 代理配置
host: "77.0.4.67",
port: 13121,
},
});
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
其他参考
使用 axios 即可
const res = await axios({
method: "post",
url,
headers,
data: body, // 请求参数 放在这里
proxy: {
// 代理配置
host: "77.0.4.67",
port: 13121,
},
});
其他参考