文章詳情頁
node.js 的request-promise模塊怎么發(fā)送帶參數(shù)的POST請求啊
瀏覽:138日期: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...
相關(guān)文章:
1. mysql - AttributeError: ’module’ object has no attribute ’MatchType’2. python - from ..xxxx import xxxx到底是什么意思呢?3. 求大神幫我看看是哪里寫錯了 感謝細(xì)心解答4. npm鏡像站全新上線5. javascript - 圖片能在網(wǎng)站顯示,但控制臺仍舊報錯403 (Forbidden)6. 網(wǎng)頁爬蟲 - python爬蟲翻頁問題,請問各位大神我這段代碼怎樣翻頁,還有價格要登陸后才能看到,應(yīng)該怎么解決7. php自學(xué)從哪里開始?8. MySQL客戶端吃掉了SQL注解?9. phpstady在win10上運行10. 數(shù)據(jù)庫 - MySQL 單表500W+數(shù)據(jù),查詢超時,如何優(yōu)化呢?
排行榜

熱門標(biāo)簽