what happens when you type in a URL in browserIn an extremely rough and simplified sketch, assuming the simplest possible HTTP request, no proxies and...
分类:
其他好文 时间:
2014-07-22 22:47:34
阅读次数:
152
在YII框架中如果访问的图片不存在,会记录大量的错误,于是我想了个办法,凡是访问不存在的图片,直接返回404,不经过YII框架location / { set $if_img N; if ($request_filename ~ (.*)\.(png|gif|jpg)){ set $if_img ....
分类:
其他好文 时间:
2014-07-22 22:42:16
阅读次数:
242
近期学习JAVA的WEB开发,遇到Request中相关的getParameter方法问题。在网上找了一下。自己整理,以备以后查用。 getParameter得到的都是String类型的。或者是用于读取提交的表单中的值(http://a.jsp?id=123中的123),或者是某个表单提交过去的数据;...
分类:
其他好文 时间:
2014-07-22 22:40:15
阅读次数:
188
以前在使用aspx页面时可通过在 Page 指令或 配置节中设置 validateRequest="false" 禁用请求验证。但在MVC(Razor)中使用无效。通告搜索得知,只需要在页面所请求的Action上加入 ValidateInput(false)即可。如:[ValidateInput(f...
分类:
Web程序 时间:
2014-07-22 22:36:36
阅读次数:
251
对即将要学到的主要东西进行初步的理解。分为两大类,硬件和软件。硬件,即Kinect。软件,即Arduino和Processing。...
分类:
其他好文 时间:
2014-07-22 14:12:36
阅读次数:
443
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding...
分类:
其他好文 时间:
2014-07-22 00:21:35
阅读次数:
233
一.添加Newtonsoft.dll引用二.cs部分 Response.Cache.SetCacheability(HttpCacheability.NoCache); if (Request.QueryString["select"]!=null) ...
分类:
Web程序 时间:
2014-07-22 00:00:35
阅读次数:
269
#pragma warning(disable:4996)
#include <cstdio>
#include <tchar.h>
#include <Windows.h>
/*
submit time : 3
1.Time Limit Exceeded
Last executed input: []
2.Cant‘s remember
request :
G...
分类:
移动开发 时间:
2014-07-21 23:30:21
阅读次数:
443
#pragma warning(disable:4996)
#include <cstdio>
#include <tchar.h>
#include <Windows.h>
#include <vector>
using namespace std;
/*
submit time : 1
request :
Given a collection of numbers, retu...
分类:
其他好文 时间:
2014-07-21 23:27:50
阅读次数:
368
Action类的execute()方法:
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException ;...
分类:
其他好文 时间:
2014-07-21 22:46:07
阅读次数:
280