<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CL_HTTP_CLIENT 404 connection refused in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-404-connection-refused/m-p/678091#M30085</link>
    <description>&lt;P&gt;HI&lt;/P&gt;
  &lt;P&gt;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&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;cl_http_client=&amp;gt;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-&amp;gt;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-&amp;gt;receive(
 EXCEPTIONS
 http_communication_failure = 1
 http_invalid_state = 2
 http_processing_failed = 3
 others = 4
).
cl_demo_output=&amp;gt;display( client-&amp;gt;response-&amp;gt;get_cdata( ) ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;After execution I get below error.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;404 Connection refused&amp;lt;/b&amp;gt;&amp;lt;/H2&amp;gt;&amp;lt;hr&amp;gt;Connect to &lt;A href="www.google.com:80" target="test_blank"&gt;www.google.com:80&lt;/A&gt; failed: NIECONN_REFUSED(‑10)&amp;lt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;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-&amp;gt;LAN settings . there i do not see anything in the proxy server tab.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 13:52:03 GMT</pubDate>
    <dc:creator>sankar_bhatta</dc:creator>
    <dc:date>2018-08-20T13:52:03Z</dc:date>
    <item>
      <title>CL_HTTP_CLIENT 404 connection refused</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-404-connection-refused/m-p/678091#M30085</link>
      <description>&lt;P&gt;HI&lt;/P&gt;
  &lt;P&gt;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&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;cl_http_client=&amp;gt;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-&amp;gt;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-&amp;gt;receive(
 EXCEPTIONS
 http_communication_failure = 1
 http_invalid_state = 2
 http_processing_failed = 3
 others = 4
).
cl_demo_output=&amp;gt;display( client-&amp;gt;response-&amp;gt;get_cdata( ) ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;After execution I get below error.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;404 Connection refused&amp;lt;/b&amp;gt;&amp;lt;/H2&amp;gt;&amp;lt;hr&amp;gt;Connect to &lt;A href="www.google.com:80" target="test_blank"&gt;www.google.com:80&lt;/A&gt; failed: NIECONN_REFUSED(‑10)&amp;lt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;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-&amp;gt;LAN settings . there i do not see anything in the proxy server tab.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 13:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-404-connection-refused/m-p/678091#M30085</guid>
      <dc:creator>sankar_bhatta</dc:creator>
      <dc:date>2018-08-20T13:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: CL_HTTP_CLIENT 404 connection refused</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-404-connection-refused/m-p/678092#M30086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;After writing the same code in another system code worked fine. looks like some issue with earlier system&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-http-client-404-connection-refused/m-p/678092#M30086</guid>
      <dc:creator>sankar_bhatta</dc:creator>
      <dc:date>2018-08-22T06:15:57Z</dc:date>
    </item>
  </channel>
</rss>

