第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

試了半天才成功,失敗的可以參考下。

var?https?=?require('https')
var?querystring?=?require('querystring')

var?postData?=?querystring.stringify({
????'content':?'test....',
????'mid':?8837,
????'r':?0.8931310037811482
})

var?options?=?{
	hostname:'idcbgp.cn',
	port:443,//http默認(rèn)端口80,https默認(rèn)端口443
	path:'/course/docomment',
	method:'POST',
	headers:{//request?headers
????????'Accept':'application/json,?text/javascript,?*/*;?q=0.01',
????????'Accept-Encoding':'gzip,?deflate,?br',
????????'Accept-Language':'zh-CN,zh;q=0.9,en;q=0.8',
????????'Cache-Control':'no-cache',
????????'Connection':'keep-alive',
????????'Content-Length':?postData.length,
????????'Content-Type':?'application/x-www-form-urlencoded;?charset=UTF-8',
????????'Cookie':'....',
????????'Host':'idcbgp.cn',
????????'Pragma':'no-cache',
????????'Referer':'http://idcbgp.cn/video/8837',
????????'User-Agent':'Mozilla/5.0?(Macintosh;?Intel?Mac?OS?X?10_13_2)?AppleWebKit/537.36?(KHTML,?like?Gecko)?Chrome/64.0.3282.186?Safari/537.36',
????????'X-Requested-With':'XMLHttpRequest'
????}
}

var?req?=?https.request(options,function(res){
	console.log('status:'+res.statusCode);
	console.log('headers:'+JSON.stringify(res.headers));
????res.on('data',?function(chunk){
????	console.log(Buffer.isBuffer(chunk));
????	console.log(typeof?chunk);
????})
????res.on('end',function(){
????	console.log('評(píng)論完畢');
????})
})

req.on('error',function(e){
	console.log('Error:'+e.message);
})
req.write(postData);
req.end();


正在回答

5 回答

感謝感謝 不過(guò)cookie中記錄了個(gè)人信息 你這樣貼出來(lái)的話(huà)別人就可以用你的賬號(hào)在慕課網(wǎng)上發(fā)評(píng)論了。。


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

橘貓先生

不存在的,服務(wù)器段會(huì)校驗(yàn)的。cookie,你每次登陸都不一樣
2018-11-09 回復(fù) 有任何疑惑可以回復(fù)我~

還是沒(méi)顯示評(píng)論啊

0 回復(fù) 有任何疑惑可以回復(fù)我~

還是沒(méi)顯示評(píng)論啊~!!

0 回復(fù) 有任何疑惑可以回復(fù)我~

你的那里的PostData中的'r':?0.8931310037811482是什么意思

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

23568 提問(wèn)者

我也不知道= =
2018-04-15 回復(fù) 有任何疑惑可以回復(fù)我~

表示一下感謝!

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
進(jìn)擊Node.js基礎(chǔ)(一)
  • 參與學(xué)習(xí)       219316    人
  • 解答問(wèn)題       982    個(gè)

本視頻教程帶你揭開(kāi)Node.js的面紗,帶你走進(jìn)一個(gè)全新世界

進(jìn)入課程

試了半天才成功,失敗的可以參考下。

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)