狀態(tài)碼 409
var?http?=?require('http') var?querystring?=?require('querystring') var?postData?=?querystring.stringify({ 'content':'i?just?want?to?test', 'cid':348 }) var?options?={ hostname:'www.immoc.com', port:80, path:'/course/docomment', method:'POST', headers:{ 'Accept':'application/json,?text/javascript,?*/*;?q=0.01', 'Accept-Encoding':'gzip,?deflate', 'Accept-Language':'zh-CN,zh;q=0.8', 'Connection':'keep-alive', 'Content-Length':postData.length, 'Content-Type':'application/x-www-form-urlencoded;?charset=UTF-8', 'Cookie':'這里放的我的cookie', 'Host':'idcbgp.cn', 'Origin':'http://idcbgp.cn', 'Referer':'http://idcbgp.cn/comment/348', 'User-Agent':'Mozilla/5.0?(Windows?NT?10.0;?WOW64)?AppleWebKit/537.36?(KHTML,?like?Gecko)?Chrome/45.0.2454.101?Safari/537.36', 'X-Requested-With':'XMLHttpRequest' } } var?req?=?http.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()
狀態(tài)碼 409
2022-03-27
滾邊上去,你發(fā)音是李陽(yáng)么?不是不要嚎?。。。?!vara=prompt("請(qǐng)確認(rèn)您要打開的網(wǎng)站");你可以這么寫,然后將a放到open的路徑中,具體prompt用法,你可以查看2-4章節(jié)
2016-07-23
解決了么?我也是的。
2016-07-19
服務(wù)器在完成請(qǐng)求時(shí)發(fā)生沖突.