<?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 Re: ABAP CL_HTTP_CLIENT basic authentication gives HTTP/1.1 500 Internal Server Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cl-http-client-basic-authentication-gives-http-1-1-500-internal-server/m-p/12449226#M1999337</link>
    <description>&lt;P&gt;Hi Cris,&lt;/P&gt;&lt;P&gt;Thanks for your reply. It's an external one.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Birendra&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 15:51:02 GMT</pubDate>
    <dc:creator>birendra_chatterjee</dc:creator>
    <dc:date>2021-06-09T15:51:02Z</dc:date>
    <item>
      <title>ABAP CL_HTTP_CLIENT basic authentication gives HTTP/1.1 500 Internal Server Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cl-http-client-basic-authentication-gives-http-1-1-500-internal-server/m-p/12449224#M1999335</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;
  &lt;P&gt;I am calling HTTPS Rest API (POST Method) by using CL_HTTP_CLIENT=&amp;gt;CREATE_BY_URL in SAP. &lt;/P&gt;
  &lt;P&gt;From Postman I am using POST method with sample URL "https://www.test.com/abc/xyz/pqr" and passing Basic Authentication credentials, and it is succesful.&lt;/P&gt;
  &lt;P&gt;If I look at the Postman HTTP code, it has two parts on the top: &lt;/P&gt;
  &lt;P&gt;POST /abc/xyz/pqr HTTP/1.1&lt;/P&gt;
  &lt;P&gt;Host: &lt;A href="https://community.sap.com/www.test.com" target="test_blank"&gt;www.test.com&lt;/A&gt; &lt;/P&gt;
  &lt;P&gt;From SAP, if I use POST method and pass the full URL (https://www.test.com/abc/xyz/pqr) and pass basic authentication credentials, it gives Invalid Authentication (status code 500). If I just pass "https://www.test.com", it is successful.&lt;/P&gt;
  &lt;P&gt;I want to add the name of the POST method "/abc/xyz/pqr" before sending from SAP. &lt;/P&gt;
  &lt;P&gt;I tried by using option below code, I again get the error of Invalid Authentication. CL_HTTP_UTILITY=&amp;gt;SET_REQUEST_URI( REQUEST = LO_HTTP_CLIENT-&amp;gt;REQUEST URI = '/abc/xyz/pqr' ). &lt;/P&gt;
  &lt;P&gt;Requesting your help in this, thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 12:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cl-http-client-basic-authentication-gives-http-1-1-500-internal-server/m-p/12449224#M1999335</guid>
      <dc:creator>former_member326098</dc:creator>
      <dc:date>2021-06-09T12:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CL_HTTP_CLIENT basic authentication gives HTTP/1.1 500 Internal Server Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cl-http-client-basic-authentication-gives-http-1-1-500-internal-server/m-p/12449225#M1999336</link>
      <description>&lt;P&gt;Hi Birendra,&lt;BR /&gt;&lt;BR /&gt;Is the URI another SAP system or it is an external one?&lt;BR /&gt;If it is an SAP system, then you can use RZ11 to set is/HTTP/show_detailed_errors = TRUE and then obtain more details about the error.&lt;BR /&gt;If it is an external system, then you would need to know more about the external system API and see why an error 500 is defined as "Invalid Authentication" (in an SAP system it would be 401 Unauthorized).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Cris&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cl-http-client-basic-authentication-gives-http-1-1-500-internal-server/m-p/12449225#M1999336</guid>
      <dc:creator>cris_hansen</dc:creator>
      <dc:date>2021-06-09T15:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CL_HTTP_CLIENT basic authentication gives HTTP/1.1 500 Internal Server Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cl-http-client-basic-authentication-gives-http-1-1-500-internal-server/m-p/12449226#M1999337</link>
      <description>&lt;P&gt;Hi Cris,&lt;/P&gt;&lt;P&gt;Thanks for your reply. It's an external one.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Birendra&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cl-http-client-basic-authentication-gives-http-1-1-500-internal-server/m-p/12449226#M1999337</guid>
      <dc:creator>birendra_chatterjee</dc:creator>
      <dc:date>2021-06-09T15:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CL_HTTP_CLIENT basic authentication gives HTTP/1.1 500 Internal Server Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cl-http-client-basic-authentication-gives-http-1-1-500-internal-server/m-p/12449227#M1999338</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;Any suggestions, as this is working from Postman, and the same thing is not working from SAP.&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 08:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cl-http-client-basic-authentication-gives-http-1-1-500-internal-server/m-p/12449227#M1999338</guid>
      <dc:creator>former_member326098</dc:creator>
      <dc:date>2021-06-10T08:25:50Z</dc:date>
    </item>
  </channel>
</rss>

