04-06-2009 9:09 AM
Hello,
i want to read the header fields from my webdynpro-application.
i hope it is possible to read all the fields like it is done in the BSP-App http://host:port/sap/bc/bsp/sap/it00
i tried to use the class cl_http_request but there were nothing.
please help me,
best regards,
Michael
04-06-2009 9:40 AM
I have found the solution...
best regards,
Michael
DATA: cl_request TYPE REF TO IF_HTTP_REQUEST,
lt_header_fields TYPE tihttpnvp,
ls_header_fields LIKE LINE OF lt_header_fields.
cl_request = wdr_task=>request.
DATA: name TYPE string,
value TYPE string,
data TYPE xstring.
CALL METHOD cl_request->if_http_entity~get_header_fields
CHANGING
fields = lt_header_fields.