How can I get a "Referer" value in BSP ?
take a look at help.sap.com:
there is the internet communication framework explained. you have some classes and interfaces for the request and response in http. look at if_http_entity with method get_header_field(s) and attribute ~remote_addr
hope that helps