on 03-01-2011 10:54 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.