在jsp文件中:Insert title here">get乱码问题java文件:protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IO...
分类:
Web程序 时间:
2015-09-07 19:29:37
阅读次数:
145
var?http?=?require(‘http‘);?//引用名称控件
server?=?http.createServer(function(req,res)?{
????res.writeHead(200,{‘Content-Type‘:‘text/plain‘});
????res.end(‘hello?world!‘);
});?/...
分类:
Web程序 时间:
2015-09-06 16:26:55
阅读次数:
134
在《nginx限制连接数ngx_http_limit_conn_module模块》和《nginx限制请求数ngx_http_limit_req_module模块》中会对所有的IP进行限制。在某些情况下,我们不希望对某些IP进行限制,如自己的反代服务器IP,公司IP等等。这就需要白名单,将特定的IP加...
分类:
其他好文 时间:
2015-09-05 20:49:05
阅读次数:
163
class Program { static void Main(string[] args) { //创建一个要下载的路径 WebRequest req = WebRequest.Create("http://stat...
用encodeURL重写URL public class SessionA extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws .....
分类:
其他好文 时间:
2015-08-31 23:21:43
阅读次数:
207
var server, ip = "127.0.0.1", port = 1337, http = require('http'), url = require('url'), path;server = http.createServer(function (req,...
分类:
Web程序 时间:
2015-08-31 16:45:39
阅读次数:
150
转载,原文来自http://blog.csdn.net/hawksoft/article/details/21776009最近调试原来的微信模拟登陆时发生了“基础连接已关闭,发送时发生错误”的错误提示,原来都是好好的,只是很久没用了。出错代码如下:HttpWebRequest req = (Http...
分类:
Web程序 时间:
2015-08-31 13:18:53
阅读次数:
220
UserServlet 1 //修改密码 2 public String updatePassword(HttpServletRequest req, HttpServletResponse resp) 3 { 4 /* 5 * 1、封装表单数据到...
分类:
其他好文 时间:
2015-08-30 15:40:11
阅读次数:
191
UserServlet 1 // 登录功能 2 public String login(HttpServletRequest req, HttpServletResponse resp) throws UnsupportedEncodingException { 3 /* 4...
分类:
其他好文 时间:
2015-08-29 22:53:47
阅读次数:
122
1. 下载并解压 hibernate-distribution-3.3.2.GA.zip 和?slf4j-1.5.8.zip? 2. 在?hibernate-distribution-3.3.2.GA 文件夹中找到: ????hibernate3.jar? 3. 在?hibernate-distribution-3.3.2.GA/lib/req...
分类:
Web程序 时间:
2015-08-29 17:20:01
阅读次数:
193