08-20-2018 2:52 PM
HI
I am tryign to call google from an ABAP program using CL_HTTP_CLIENT. Below is the code that i got from one of the discussions / blogs
cl_http_client=>create(
EXPORTING
host = 'www.google.com'
IMPORTING
client = data(client) " HTTP Client Abstraction
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
others = 4
).
CHECK sy-subrc = 0.
client->send(
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
http_invalid_timeout = 4
others = 5
).
CHECK sy-subrc = 0.
client->receive(
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
others = 4
).
cl_demo_output=>display( client->response->get_cdata( ) ).
After execution I get below error.
404 Connection refused</b></H2><hr>Connect to www.google.com:80 failed: NIECONN_REFUSED(‑10)<
After reading several blogs and discussion I suspect this is something to do with proxy server settings etc.,. But I am not sure where or how to check this. I checked my internet explorer settings by going to connections->LAN settings . there i do not see anything in the proxy server tab.
08-22-2018 7:15 AM
Hi,
After writing the same code in another system code worked fine. looks like some issue with earlier system
08-22-2018 7:15 AM
Hi,
After writing the same code in another system code worked fine. looks like some issue with earlier system