是否可以读取SAP BSP应用程序中的客户端ip地址?我们想把这个ip地址保存起来,稍后再用。
连接是通过我们DMZ中的WebDispatcher连接到SAP的。
谢谢,h。
发布于 2012-08-21 21:48:31
下面是一个简单的示例,如何做到这一点;创建一个控制器并像这样实现DO_REQUEST:
method do_request.
data remote_ip type string.
remote_ip = request->get_header_field( `~remote_addr` ).
write( remote_ip ).
endmethod.编辑:虽然我无法使用web dispatcher测试这一点。
发布于 2012-08-20 15:02:57
通常,这应该是可能的,但由于您使用的是Web Dispatcher,我认为您只能看到Web Dispatcher的IP。您可能必须在那里实现某种类型的日志记录,而不是在BSP应用程序内部。
https://stackoverflow.com/questions/12033059
复制相似问题