Package burp

Interface IRequestInfo


  • public interface IRequestInfo
    This interface is used to retrieve key details about an HTTP request. Extensions can obtain an IRequestInfo object for a given request by calling IExtensionHelpers.analyzeRequest().
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getBodyOffset()
      This method is used to obtain the offset within the request where the message body begins.
      byte getContentType()
      This method is used to obtain the content type of the message body.
      java.util.List<java.lang.String> getHeaders()
      This method is used to obtain the HTTP headers contained in the request.
      java.lang.String getMethod()
      This method is used to obtain the HTTP method used in the request.
      java.util.List<IParameter> getParameters()
      This method is used to obtain the parameters contained in the request.
      java.net.URL getUrl()
      This method is used to obtain the URL in the request.
    • Field Detail

      • CONTENT_TYPE_NONE

        static final byte CONTENT_TYPE_NONE
        Used to indicate that there is no content.
        See Also:
        Constant Field Values
      • CONTENT_TYPE_URL_ENCODED

        static final byte CONTENT_TYPE_URL_ENCODED
        Used to indicate URL-encoded content.
        See Also:
        Constant Field Values
      • CONTENT_TYPE_MULTIPART

        static final byte CONTENT_TYPE_MULTIPART
        Used to indicate multi-part content.
        See Also:
        Constant Field Values
      • CONTENT_TYPE_XML

        static final byte CONTENT_TYPE_XML
        Used to indicate XML content.
        See Also:
        Constant Field Values
      • CONTENT_TYPE_JSON

        static final byte CONTENT_TYPE_JSON
        Used to indicate JSON content.
        See Also:
        Constant Field Values
      • CONTENT_TYPE_AMF

        static final byte CONTENT_TYPE_AMF
        Used to indicate AMF content.
        See Also:
        Constant Field Values
      • CONTENT_TYPE_UNKNOWN

        static final byte CONTENT_TYPE_UNKNOWN
        Used to indicate unknown content.
        See Also:
        Constant Field Values
    • Method Detail

      • getMethod

        java.lang.String getMethod()
        This method is used to obtain the HTTP method used in the request.
        Returns:
        The HTTP method used in the request.
      • getUrl

        java.net.URL getUrl()
        This method is used to obtain the URL in the request.
        Returns:
        The URL in the request.
      • getHeaders

        java.util.List<java.lang.String> getHeaders()
        This method is used to obtain the HTTP headers contained in the request.
        Returns:
        The HTTP headers contained in the request.
      • getParameters

        java.util.List<IParameter> getParameters()
        This method is used to obtain the parameters contained in the request.
        Returns:
        The parameters contained in the request.
      • getBodyOffset

        int getBodyOffset()
        This method is used to obtain the offset within the request where the message body begins.
        Returns:
        The offset within the request where the message body begins.
      • getContentType

        byte getContentType()
        This method is used to obtain the content type of the message body.
        Returns:
        An indication of the content type of the message body. Available types are defined within this interface.