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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

返回200,但是評(píng)論卻沒(méi)有看見新增,求解

返回200,但是評(píng)論卻沒(méi)有看見新增,求解

慕神1332585 2016-03-16 15:52:27
var http = require('http');var querystring = require('querystring');//把對(duì)象序列化var postData = querystring.stringify({ 'content':'12345', 'cid':348});var options = { hostname:'idcbgp.cn', port:80, path:'/course/docomment', meth:'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':'imooc_uuid=f81665e5-11b0-41eb-9a31-07a5bb5a41e0;imooc_isnew_ct=1457316482;IMCDNS=0;loginstate=1;apsid=gzNTc0NzdjMGM1NGU4N2JkNDE5MWJlNTY0MTkzYjMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMjczMzgyMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAxMjU5MDMxMDFAcXEuY29tAAAAAAAAAAAAAAAAAAAAADFiODUxNzgyZjg3YmI4Y2ZiNGY2OGNlYjExNmVlNmZln%2BLcVp%2Fi3FY%3DZj;last_login_username=125903101%40qq.com;bdshare_firstime=1457935399282;PHPSESSID=mmgrt2fjfdr85k7pfigdjha856;jwplayer.qualityLabel=è???;jwplayer.mute=false;jwplayer.volume=100;imooc_isnew=2;cvde=56e8abaf0b785-76;Hm_lvt_f0cfcccd7b1393990c78efdeebff3968=1457915837,1457935981,1458001811,1458088818;Hm_lpvt_f0cfcccd7b1393990c78efdeebff3968=1458111895',? ? ? ? 'DNT':'1',? ? ? ? 'Host':'idcbgp.cn',? ? ? ? 'Origin':'http://idcbgp.cn',? ? ? ? 'Referer':'http://idcbgp.cn/comment/348',? ? ? ? 'User-Agent':'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) ? ? ? ? Chrome/48.0.2564.97 Safari/537.36',? ? ? ? 'X-Requested-With':'XMLHttpRequest', }};var req = http.request(options,function ?(res) { console.log('status:'+res.statusCode);//網(wǎng)絡(luò)請(qǐng)求狀態(tài)碼? ? ?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();
查看完整描述

1 回答

?
慕用0418482

TA貢獻(xiàn)98條經(jīng)驗(yàn) 獲得超15個(gè)贊

返回200代表請(qǐng)求成功,還要看有沒(méi)有返回值

查看完整回答
反對(duì) 回復(fù) 2016-08-02
  • 1 回答
  • 0 關(guān)注
  • 1457 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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