可以跨域下载
/**
* 音频下载
*/
@RequestMapping("/audio/download")
public void downloadFile(HttpServletRequest request, HttpServletResponse response) throws IOException {
/...
分类:
编程语言 时间:
2014-11-27 12:46:03
阅读次数:
141
如果页面中不用Ajax,cs中运行某段js代码方式可以是:Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "");如果页面中使用了Ajax ,则上述代码即使执行也无效果。如果页面中Response.Write(),Page.Re...
分类:
Web程序 时间:
2014-11-27 12:08:45
阅读次数:
203
1、转发和重定向HttpServletResponse response转发: RequestDispatcher dispatcher = request.getRequestDispatcher("/secondServlet"); request.setAttribute("pwd...
分类:
编程语言 时间:
2014-11-27 09:07:41
阅读次数:
215
作为一只小小小白的安全新手,只会简单的用sqlmap扫扫网站,用burpsuite的proxy模块拦截一些请求。最近又对proxy有点儿小理解,记录之。1. 查看sqlmap注入的语句以及HTTP request/response信息sqlmap是很好用的自动测试工具,但有时候想要查看请求具体的内容...
分类:
Web程序 时间:
2014-11-27 00:06:25
阅读次数:
641
HTTP异常App::abort('404','Page not found');App::abort('401','You are not authorized');App::missing(function($exception){ return Response::view('errors.....
分类:
Web程序 时间:
2014-11-26 18:35:10
阅读次数:
196
Request.Cookies 是客户端通过 Cookie 标头形式由客户端传输到服务器的 Cookie;Response.Cookies 在服务器上创建并以 Set-Cookie 标头的形式传输到客户端http://www.cnblogs.com/ranran/p/4123123.html
分类:
其他好文 时间:
2014-11-26 18:31:51
阅读次数:
132
$value = Cookie::get('name');$response = Response::make('world');$response->withcookie(Cookie::make('name','value',$minutes));$cookie = Cookie::foreve...
分类:
其他好文 时间:
2014-11-26 18:11:44
阅读次数:
334
.NET中提供了读写Cookie的多种方法,Request.Cookies 是客户端通过 Cookie 标头形式由客户端传输到服务器的 Cookie;Response.Cookies 在服务器上创建并以 Set-Cookie 标头的形式传输到客户端。也就是说,一个是客户端向服务器端发送的来的,一个是...
分类:
其他好文 时间:
2014-11-26 15:45:36
阅读次数:
135
1 //设置响应头 2 response.setCharacterEncoding("image/jpeg"); 3 int width=160; 4 int height=40; 5 BufferedImage im...
分类:
其他好文 时间:
2014-11-26 13:55:06
阅读次数:
192
前台代码:
var json = {
width: w,
height: h,
category: canvas_category,
name: canvas_json_name,
description: canvas_description,
border: canvas_border,
lineWidth: defaultLineW,...
分类:
Web程序 时间:
2014-11-26 11:17:38
阅读次数:
158