Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CL_HTTP_CLIENT 404 connection refused

sankar_bhatta
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

sankar_bhatta
Participant
0 Kudos

Hi,

After writing the same code in another system code worked fine. looks like some issue with earlier system

1 REPLY 1

sankar_bhatta
Participant
0 Kudos

Hi,

After writing the same code in another system code worked fine. looks like some issue with earlier system