下列选项中,可以实现文件下载的是()。A、header("Content-type:text/html;charset=utf-8")B、header("Content-type:image/jpeg")C、header("Content-Disposition:attachment;filename=girl.jpg")D、header("Location:http://www.test.com")

题目

下列选项中,可以实现文件下载的是()。

  • A、header("Content-type:text/html;charset=utf-8")
  • B、header("Content-type:image/jpeg")
  • C、header("Content-Disposition:attachment;filename=girl.jpg")
  • D、header("Location:http://www.test.com")

相似考题
更多“下列选项中,可以实现文件下载的是()。A、header("Content-type:text/html;charset=utf-8")B、header("Content-type:image/jpeg")C、header("Content-Disposition:attachment;filename=girl.jpg")D、header("Location:http://www.test.com")”相关问题
  • 第1题:

    下列哪个函数可以用于页面跳转?()

    • A、redir()
    • B、header()
    • C、location()
    • D、recirect()

    正确答案:B

  • 第2题:

    For an HttpServlet Response response, which two create a custom header()

    • A、 response.set Header (“X-MyHeader”. “34”):
    • B、 response.addHeader (“X-MyHeader”. “34”):
    • C、 response. Set Header (new Http Header (“X-MyHeader”. “34”)):
    • D、 response.addHeader(new Http Header (“X-MyHeader”. “34”)):
    • E、 response. addHeader (new Servlet Header (“X-MyHeader”. “34”)):
    • F、 response. setHeader (new Servlet Header (“X-MyHeader”, “34”)):

    正确答案:A,B

  • 第3题:

    在PHP中,文件下载方式有且仅有一种,即通过header()函数下载。


    正确答案:错误

  • 第4题:

    在HTML5中,一个网页中可以使用多个header元素,也可以为每一个内容块添加header元素


    正确答案:正确

  • 第5题:

    说明HTML中标签〈header〉的作用。


    正确答案:对主页的介绍,〈header〉标签定义文档的页眉(介绍信息)。

  • 第6题:

    Which of the following is true about the MPLS header and its EXP field size?()

    • A、The MPLS header is 2 bytes,and the EXP field is 3 bits long.
    • B、The MPLS header is 1 byte,and the EXP field is 3 bits long.
    • C、The MPLS header is 4 bytes,and the EXP field is 3 bits long.
    • D、The MPLS header is 3 bytes,and the EXP field is 3 bits long.

    正确答案:C

  • 第7题:

    In a Bridged 1483 network, what Layer 2 encapsulations are passed between the DSL bridge and the ERX?()

    • A、single ATM header
    • B、single Ethernet header
    • C、ATM header followed by a PPP header
    • D、ATM header followed by an Ethernet header

    正确答案:D

  • 第8题:

    多选题
    For an HttpServlet Response response, which two create a custom header()
    A

    response.set Header (“X-MyHeader”. “34”):

    B

    response.addHeader (“X-MyHeader”. “34”):

    C

    response. Set Header (new Http Header (“X-MyHeader”. “34”)):

    D

    response.addHeader(new Http Header (“X-MyHeader”. “34”)):

    E

    response. addHeader (new Servlet Header (“X-MyHeader”. “34”)):

    F

    response. setHeader (new Servlet Header (“X-MyHeader”, “34”)):


    正确答案: F,C
    解析: 暂无解析

  • 第9题:

    多选题
    Which three are characteristics of IPv6?()
    A

    An IPv6 address is 128 bits long.

    B

    An IPv6 header contains the header checksum field.

    C

    An IPv6 header is 20 bits long.

    D

    An IPv6 header contains the next header field.

    E

    IPv6 route rs send RA messages.

    F

    An IPv6 header contains the protocol field.


    正确答案: A,C
    解析: 暂无解析

  • 第10题:

    单选题
    语句“header(“Content-Disposition:attachment;filename=girl.jpg”)”中,filename用于()。
    A

    生成下载文件的名字

    B

    指定下载后的文件名

    C

    显示下载文件的路径

    D

    以上答案都不正确


    正确答案: C
    解析: 暂无解析

  • 第11题:

    单选题
    下列选项中,可以实现文件下载的是()。
    A

    header(Content-type:text/html;charset=utf-8)

    B

    header(Content-type:image/jpeg)

    C

    header(Content-Disposition:attachment;filename=girl.jpg)

    D

    header(Location:http://www.test.com)


    正确答案: A
    解析: 暂无解析

  • 第12题:

    单选题
    Your web application views all have the same header, which includes the  tag in the  elementof the rendered HTML. You have decided to remove this redundant HTML code from your JSPs and put itinto a single JSP called /WEB-INF/jsp/header.jsp. However, the title of each page is unique, so you havedecided to use a variable called pageTitle to parameterize this in the header JSP, like this: 10.${param.pageTitle} Which JSP code snippet should you use in your main view JSPs to insert the header and pass thepageTitle variable?()
    A

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:insert>

    B

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    C

    <jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    D

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert>

    E

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>


    正确答案: A
    解析: 暂无解析

  • 第13题:

    在HTML5中,header元素可以用来放置网站Logo图片、搜索表单或者其他相关内容。


    正确答案:正确

  • 第14题:

    Which two are valid fields in an IPv6 header?()

    • A、Hop Limit
    • B、Next Header
    • C、Fragment Offset
    • D、Header Checksum

    正确答案:A,B

  • 第15题:

    语句“header(“Content-Disposition:attachment;filename=girl.jpg”)”中,filename用于()。

    • A、生成下载文件的名字
    • B、指定下载后的文件名
    • C、显示下载文件的路径
    • D、以上答案都不正确

    正确答案:B

  • 第16题:

    HTML5中的header元素是一种具有引导和导航作用的结构元素


    正确答案:正确

  • 第17题:

    Where is the MPLS label imposed?()

    • A、after the Layer 3 header and before the Layer 2 payload
    • B、after the Layer 3 header and before the Layer 4 payload
    • C、after the Layer 2 header and before the Layer 1 payload
    • D、after the Layer 1 header and before the Layer 2 payload
    • E、after the Layer 2 header and before the Layer 3 payload

    正确答案:E

  • 第18题:

    Why is IPv6 packet processing more effective than IPv4 packet processing?()

    • A、fixed header size
    • B、smaller header size
    • C、fewer header fields
    • D、variable header size

    正确答案:A

  • 第19题:

    When an SRX series device receives an ESP packet, what happens?()

    • A、If the destination address of the outer IP header of the ESP packet matches the IP address of the ingress interface, it will
    • B、If the destination IP address in the outer IP header of ESP does not match the IP address of the ingress interface, it will
    • C、If the destination address of the outer IP header of the ESP packet matches the IP address of the ingress interface, based packet.
    • D、If the destination address of the outer IP header of the ESP packet matches the IP address of the ingress interface, based of inner header, it will decrypt the packet.

    正确答案:C

  • 第20题:

    问答题
    说明HTML中标签〈header〉的作用。

    正确答案: 对主页的介绍,〈header〉标签定义文档的页眉(介绍信息)。
    解析: 暂无解析

  • 第21题:

    判断题
    在PHP中,文件下载方式有且仅有一种,即通过header()函数下载。
    A

    B


    正确答案:
    解析: 暂无解析

  • 第22题:

    单选题
    Where is the MPLS label imposed?()
    A

    after the Layer 3 header and before the Layer 2 payload

    B

    after the Layer 3 header and before the Layer 4 payload

    C

    after the Layer 2 header and before the Layer 1 payload

    D

    after the Layer 1 header and before the Layer 2 payload

    E

    after the Layer 2 header and before the Layer 3 payload


    正确答案: A
    解析: 暂无解析

  • 第23题:

    单选题
    Which of the following is true about the MPLS header and its EXP field size?()
    A

    The MPLS header is 2 bytes,and the EXP field is 3 bits long.

    B

    The MPLS header is 1 byte,and the EXP field is 3 bits long.

    C

    The MPLS header is 4 bytes,and the EXP field is 3 bits long.

    D

    The MPLS header is 3 bytes,and the EXP field is 3 bits long.


    正确答案: B
    解析: 暂无解析