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

為了賬號安全,請及時綁定郵箱和手機立即綁定

鳳凰網(wǎng)http協(xié)議返回評論成功但同樣刷新無評論

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

var?postData=querystring.stringify({
????'callback':?'postCmt',
????'docUrl':?'sub_80173140',
????'skey':?'c2564e',
????'format':?'js',
????'content':?'Dengchao!',
????'callback':'?postCmt',
????'permalink':?'http://ent.ifeng.com/a/20180926/43111131_0.shtml'
})

var?options={
????hostname:'comment.ifeng.com',
????port:80,
????path:'comment.ifeng.com/post.php?callback=postCmt&docUrl=sub_80173140&docName=%E9%82%93%E8%B6%85%E8%8A%B1%E4%B9%9D%E4%B8%AA%E6%9C%88%E8%8B%A6%E5%BF%83%E4%B8%BA%E5%AD%99%E4%BF%AA%E5%87%86%E5%A4%87%E7%94%9F%E6%97%A5%E7%A4%BC%E7%89%A9%EF%BC%8C%E7%BD%91%E5%8F%8B%EF%BC%9A%E8%B6%85%E5%93%A5P%E5%9B%BE%E7%B4%AF%E5%9D%8F%E4%BA%86%E5%90%A7&speUrl=&skey=c2564e&format=js&content=%E6%AF%8F%E5%88%B09%E7%82%B926%E5%88%86%E5%B0%B1%E6%83%B3%E4%BD%A0&callback=postCmt&permalink=http%3A%2F%2Fent.ifeng.com%2Fa%2F20180926%2F43111131_0.shtml',
????methods:'POST',
????headers:{
????????'Accept':?'*/*',
'Accept-Encoding':?'gzip,?deflate',
'Accept-Language':?'zh-CN,zh;q=0.9',
'Connection':?'keep-alive',
'Cookie':?'***',
'Host':?'comment.ifeng.com',
'Referer':?'http://ent.ifeng.com/a/20180926/43111131_0.shtml',
'User-Agent':?'Mozilla/5.0?(Windows?NT?10.0;?Win64;?x64)?AppleWebKit/537.36?(KHTML,?like?Gecko)?Chrome/69.0.3497.100?Safari/537.36'
????}
}
var?req=http.request(options,function?(res)?{
????console.log("Status:"+res.statusCode)
????console.log("headers:"+JSON.stringify(res.headers))
????res.on("data",function?(chrunk)?{
????????console.log(Buffer.isBuffer(chrunk))
????????console.log(typeof?chrunk)

????})
????res.on("end",function?()?{
????????console.log("評論完畢");
????})

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


正在回答

2 回答

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

鳳凰網(wǎng)我也試了試也是不行,我看網(wǎng)站本身用的get方法,下面是我看到它提交時的數(shù)據(jù),可是刷新后也是無評論,我對它的評論判斷機制有點懵。。。

var?postData?=?querystring.stringify({
'callback':'postCmt',
'docUrl':'?
'docName':'朝鮮舉行全國大學(xué)生軟件競賽?60所大學(xué)200多人參加',
'speUrl':'',
'skey':'aa0dce',
'format':'js',
'content':'相當(dāng)可以,666',
'callback':'postCmt',
'permalink':'?
})


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

舉報

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

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

進(jìn)入課程

鳳凰網(wǎng)http協(xié)議返回評論成功但同樣刷新無評論

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

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

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

公眾號

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