on 2009 Apr 06 9:31 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 under 8. 8. 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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
URL parameters can be read within an input plug:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/2233b60c21072ce10000000a155369/frameset.htm
This should give you access to application specific headers. There are APIs for reading some of the system level headers. For instance in IF_WD_APPLICATION, you can get the Remote IP address and the Client Environment. These methods are just wrappers around WDR_TASK, but they ensure safe and permanent access to it.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/036b1fdc7e22f2e10000000a1553f7/frameset.htm
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.