cancel
Showing results for 
Search instead for 
Did you mean: 

URL/Browser Check Function.

Former Member
0 Kudos

Hi Friends,

I want to check if the given URL/Browser is valid. I couldnu2019t find any standard function for this check. The method CL_GUI_FRONTEND_SERVICES->EXECUTE and Function module Call_Browser are only to call but it is not returning any error (HTTP 400 or something like this).

Do you know any function or method to check URL/Browser (not to open but only to check and get the return code)?

...Naddy

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Class CL_HTTP_CLIENT will use the ABAP Server as the Client (Web Browser). You can make an HTTP request to a URL and check the HTTP return code - all from the server work process. The other approaches you mention all use the client side and the SAPGUI to call the client side web browser and wouldn't work from within Web Dynpro. CL_HTTP_CLIENT works perfectly fine within WDA.

Former Member
0 Kudos

I am getting ICM_HTTP_CONNECTION_FAILED error always (i tried with google and other URL).

1) I have created client object from cl_http_client=>create_by_url for http://www.sdn.sap.com but not passing proxy host and service)

2) Called method client->send( ).

3) Called methid client->receive( ).

4) Receiving always u201AICM_HTTP_CONNECTION_FAILEDu2019

...Naddy

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>passing proxy host and service

I most corporate environements you are going to have either supply the proxy information to the class or maintain it globally in transaction SICF (what I personally do). Otherwise you will be blocked at your corporate firewall.

Former Member
0 Kudos

Thanks for the info. I will talk with basis, security and portal team about this.

...Naddy

Answers (0)