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

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

post提交報404錯誤

Status:404

headers:{"server":"nginx","date":"Tue, 11 Apr 2017 06:39:45 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding, Accept-Encoding","expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate, post-check=0, pre-check=0","pragma":"no-cache","content-encoding":"gzip"}

true

object

評論完畢

一直是這樣的提示

代碼是這樣的

var??http?=?require("http");
var??querystring?=?require("querystring");
var?postData?=?querystring.stringify({
	'content':'hhhhhhhhhhhhhhhh',
	'cid':8837
})
var?options?=?{
	hostname:'idcbgp.cn',
	port:80,
	path:'/course/docoment',
	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':'imooc_uuid=697fe7b1-5085-4cdb-9802-1e93e91171fc;?imooc_isnew_ct=1490600008;?loginstate=1;?apsid=ZiMzk3OWE2MmQ1N2I0YWM0NTM0NzRjMGJiNWIyNWIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANDc4MDg3NQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGIwZDcxNjFkODkzZTRlYzE5M2RmNzc2ZGQwYjU3M2JlsB%2FfWLAf31g%3DOT;?PHPSESSID=h5qehjh46s1uvaesimfd6n2dt3;?IMCDNS=0;?Hm_lvt_f0cfcccd7b1393990c78efdeebff3968=1491541877,1491542023,1491542065,1491785577;?Hm_lpvt_f0cfcccd7b1393990c78efdeebff3968=1491887901;?imooc_isnew=2;?cvde=58ead76900168-162',
		'Host':'idcbgp.cn',
		'Origin':'http://idcbgp.cn',
		'Referer':'http://idcbgp.cn/video/6687',
		'User-Agent':'Mozilla/5.0?(X11;?Linux?x86_64)?AppleWebKit/537.36?(KHTML,?like?Gecko)?Chrome/57.0.2987.133?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('評論完畢');
	})
	})
req.on('error',function(e){
	console.log('Error'?+?e.message)
})
req.write(postData);
req.end();


正在回答

2 回答

請求頭 path = '/course/docomment' ?少了個m

0 回復 有任何疑惑可以回復我~
#1

慕粉1600211844 提問者

非常感謝!
2017-04-12 回復 有任何疑惑可以回復我~

404沒找到服務器資源 也就是你的請求路徑錯了 檢查path是否正確

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
進擊Node.js基礎(一)
  • 參與學習       219315    人
  • 解答問題       982    個

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

進入課程

post提交報404錯誤

我要回答 關注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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