文章詳情頁
node.js 的request-promise模塊怎么發(fā)送帶參數(shù)的POST請求啊
瀏覽:149日期:2024-07-22 14:51:48
問題描述
var rp = require(’request-promise’);var options= {method:’post’,uri:'http://192.168.0.37:8084/comments/praise',qs:{id:id},headers:{ ’User-Agent’: ’Request-Promise’},json: true }; rp(options).then(function(data){console.log(data) });
報錯了,麻煩大神看下
問題解答
回答1:https://github.com/request/re...
相關文章:
1. python 利用subprocess庫調(diào)用mplayer時發(fā)生錯誤2. html - eclipse 標簽錯誤3. 安全性測試 - nodejs中如何防m(xù)ySQL注入4. python文檔怎么查看?5. python - Pycharm的Debug用不了6. javascript - nginx反向代理靜態(tài)資源403錯誤?7. python - pycharm 自動刪除行尾空格8. 請問PHPstudy中的數(shù)據(jù)庫如何創(chuàng)建索引9. datetime - Python如何獲取當前時間10. javascript - 關于apply()與call()的問題
排行榜

熱門標簽