指定一个HTTP报头。应用一例:可以伪造HTTP_REFERER

解决方案 »

  1.   

    cloudchen如何伪造HTTP_REFERER
      

  2.   

    指定HTTP header setRequestHeader Method (IXMLHTTPRequest)
    Specifies the name of an HTTP header.[Script] 
    Script Syntax
    oXMLHttpRequest.setRequestHeader(bstrHeader, bstrValue);
    Parameters
    bstrHeader 
    A string. A header name to set; for example, "depth". This parameter should not contain a colon and should be the actual text of the HTTP header. 
    bstrValue 
    A string. The value of the header; for example, "infinity". 
    Note   You must call the open method before you call this method. Otherwise, an error will occur.