cancel
Showing results for 
Search instead for 
Did you mean: 

Get the current IE browser URL address

Former Member
0 Kudos

Hello,

I need to retrieve the current address of the browser page with Web Dynpro Abap. It's possible?

I need to retrieve the url of the browser to see some images from the Internet. Does not help me retrieve the address of the Web dynpro application component from the internet because there is no access to images. It uses a portal to access the application. Would need to know if there is any way to recover the direction of the browser and use it to access the display of images from the Internet.

Thank you very much!!!!

Xavier.

Accepted Solutions (0)

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

Hi Xavier,

I don't know about accessing images by knowing the URL, but I can think of two possibilities that might help you though neither reads the actual URL as typed in the browser's address bar.

  • IF_WD_APPLICATION->GET_REMOTE_ADDRESS will return the IP address of the client.
  • CL_WD_UTILITIES=>CONSTRUCT_WD_URL will return an absolute URL for the application you specify.

Also see SCN discussion, How to get URL currently shown in Webbrowser.

Cheers,

Amy

Former Member
0 Kudos

Hello Amy,

    

My goal is to retrieve the url of the browser to know the hostname and port. Thus knowing the hostname and port I can access images from the Internet.

An example of access to the Internet (through portal) would be:

http://portal:port/irj/portal?NavigationTarget=navurl%3A%2F%2F8d48a4f58afee473e3104acf95722a1e&Curre...

The solutions you show me retrieve the hostname and port of the component application. The current url browser and the url of the component application will be different in the case is accessed from the Internet through the portal (http://portal:port)

Cheers,

Xavier