标签文章:#nodejs-http#
-
【NodeJs】Http:简化版客户端http.get
varhttp=require('http');http.get({ host:'localhost', path:'/user?name=Nemo', ......
Nemo 2016.08.01 22:20 4658浏览 0回复
阅读更多 -
【NodeJs】Http:client
varhttp=require('http');varquerystring=require('querystring');varcontents={ 'name':'Nemo', 'age':'23', &nbs......
Nemo 2016.08.01 22:11 2944浏览 0回复
阅读更多 -
【NodeJs】Http:post
varhttp=require('http');varqueryStr=require('querystring');varutil=require('util');http.createServer(function(req,res){ varpost=''; &nbs......
Nemo 2016.08.01 21:50 3332浏览 0回复
阅读更多 -
【NodeJs】Http:get
varhttp=require('http');varurls=require('url');varutil=require('util');http.createServer(function(req,res){ res.writeHead(200,{'Content-Type':'text/plain......
Nemo 2016.08.01 21:49 3192浏览 0回复
阅读更多 -
【NodeJs】Http:原生实现
varhttp=require('http');varserver=newhttp.Server();server.on('request',function(){ res.writeHead(200,{'Content-Type':'text/html'}); &nbs......
Nemo 2016.08.01 21:49 1015浏览 0回复
阅读更多 -
[NodeJs]HTTP
varoptions={ hostname:'www.imooc.com', port:80, path:'/course/docomment', method:'POST', &n......
Nemo 2016.07.05 15:56 5163浏览 0回复
阅读更多