on 08-02-2006 10:27 AM
Hello,
In a BSP application i am trying to retrieve the server anme and port number.
for server name i am using,
<%=request->get_header_field('~SERVER_NAME')%>.
Could you let me know what is the method to get the port number?
regards,
Ravi
option 1.
CALL FUNCTION 'TH_GET_VIRT_HOST_DATA'
EXPORTING
protocol = 1
virt_idx = 0
* LOCAL = 1
IMPORTING
hostname = server
port = port
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3 .
option 2:
server_port with the same mechanism.
<%=request->get_header_field('~SERVER_PORT')%>.
Regards
Raja
Message was edited by: Durairaj Athavan Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.