• 2022-05-27
    下列方法设置常见HTTP头,其功能描述错误的是()。
    A: setContentType方法用来设置响应头的Content-Type
    B: setContentLength方法用来设置响应头的Content-Length
    C: setUserAgent方法用来设置响应头的User-Agent
    D: addCookie方法用来将cookie插入Set-Cookie头
  • C

    内容

    • 0

      方法头的关键字( )用来表示方法不返回任何值。

    • 1

      ASP.NET中Cookie对象的方法中用来获取或设置Cookie的过期日期和时间的属性是()。

    • 2

      文件下载时,用来告知浏览器以附件形式下载资源的响应头是() A: Content-Disposition B: Content-Type C: ContentEncoding D: ContentAttachment

    • 3

      【填空题】方法头的关键字____用来表示方法不返回任何值。<br/><br/>

    • 4

      HttpServletResponse接口的sendRedirect()方法,该方法的实质是生成【 】响应码和Location响应头,并发送给客户端