INTERFACE if_http_request PUBLIC.

  CONSTANTS:
    co_protocol_version_1_1 TYPE string VALUE 'VER11',
    co_request_method_get TYPE string VALUE 'GET',
    co_request_method_post TYPE string VALUE 'POST'.

  METHODS:
    set_header_field
      IMPORTING
        name TYPE string
        value TYPE string.

  METHODS
    get_header_field
      IMPORTING
        field TYPE string
      RETURNING
        VALUE(value) TYPE string.

  METHODS get_header_fields CHANGING fields TYPE tihttpnvp.
  METHODS get_form_fields CHANGING fields TYPE tihttpnvp.
  METHODS set_form_fields IMPORTING fields TYPE tihttpnvp.

  METHODS set_method IMPORTING meth TYPE string.
  METHODS get_method RETURNING VALUE(meth) TYPE string.

  METHODS set_version
    IMPORTING
      version TYPE string.

  METHODS set_data IMPORTING data TYPE xstring.

  METHODS set_cdata IMPORTING data TYPE string.

  METHODS set_form_field
    IMPORTING
      name TYPE string
      value TYPE string.

ENDINTERFACE.