网站首页 站内搜索

搜索结果

查询Tags标签: Disposition,共有 5条记录
  • SpringBoot excel文件下载

    File file = new File(xxx); response.setCharacterEncoding("utf-8"); response.addHeader("Content-Disposition", "attachment; filename*=UTF-8" + URLEncoder.encode(fileName, "UTF-8") + ".xlsx"); response.se…

    2022/8/23 23:25:37 人评论 次浏览
  • 文件上传对文件内容检测时绕过

    1.先假设一个前提,可以上传.htaccess或者.user.ini 因为不知道目标使用的是 nginx 还是 Apache,所以给两个参考链接 如果是nginx可以看看我这篇文章的0x01 CheckIn:https://www.cnpanda.net/ctf/383.html 如果是apache可以看看这篇文章:https://thibaud-robin.fr/arti…

    2021/7/31 23:06:56 人评论 次浏览
  • 文件上传对文件内容检测时绕过

    1.先假设一个前提,可以上传.htaccess或者.user.ini 因为不知道目标使用的是 nginx 还是 Apache,所以给两个参考链接 如果是nginx可以看看我这篇文章的0x01 CheckIn:https://www.cnpanda.net/ctf/383.html 如果是apache可以看看这篇文章:https://thibaud-robin.fr/arti…

    2021/7/31 23:06:56 人评论 次浏览
  • JavaWeb篇:文件上传与下载

    1、文件的上传介绍1、要有一个form标签,method=post请求2、form标签的encType属性值必须为multipart/form-data3、早form标签中使用input type=file添加上传的文件4、编写服务器代码(Servlet程序)接收,处理上传的数据 encType=multipart/form-data表示提交的数…

    2021/7/9 1:06:54 人评论 次浏览
  • 解决node.js报错Invalid character in header content ["Content-Disposition"]

    遇到这种报错一般在于下载文件时候,如果Content-Disposition设置文件名有中文会出现此种问题,解决方案如下: 把第二段代码改为第一段,即可~~ Content-Disposition: attachment; filename= + encodeURIComponent(fileName), //告诉浏览器这是一个需要下载的文件,之所以…

    2021/6/16 1:21:12 人评论 次浏览
扫一扫关注最新编程教程