<?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: IF_HTTP_CLIENT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-http-client/m-p/1406369#M196057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method http_client-&amp;gt;request-&amp;gt;set_authorization&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        username = 'xyz'&lt;/P&gt;&lt;P&gt;        password = 'xxx'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2007 08:08:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-12T08:08:11Z</dc:date>
    <item>
      <title>IF_HTTP_CLIENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-http-client/m-p/1406367#M196055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am trying to receive a file by HTTP. The file is in a server in the same network as SAP. This server uses IIS and requires authentication.&lt;/P&gt;&lt;P&gt;I am using the following piece of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: url         TYPE STRING,&lt;/P&gt;&lt;P&gt;        http_client TYPE REF TO IF_HTTP_CLIENT,&lt;/P&gt;&lt;P&gt;        return_code TYPE I,&lt;/P&gt;&lt;P&gt;        content     TYPE STRING.&lt;/P&gt;&lt;P&gt;  url = 'http://192.168.0.1:6100/file.bmp'.&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_HTTP_CLIENT=&amp;gt;CREATE_BY_URL&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      URL                = url&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      CLIENT             = http_client&lt;/P&gt;&lt;P&gt;  http_client-&amp;gt;send( ).&lt;/P&gt;&lt;P&gt;  http_client-&amp;gt;receive( ).&lt;/P&gt;&lt;P&gt;  http_client-&amp;gt;response-&amp;gt;get_status( IMPORTING code = return_code ).&lt;/P&gt;&lt;P&gt;  content = http_client-&amp;gt;response-&amp;gt;get_cdata( ).&lt;/P&gt;&lt;P&gt;  http_client-&amp;gt;close( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run the program i get a popup that asks for a login. I put in the correct login but it wont accept it (Note: The login includes a domain: domain\user) and after 3 times i get a 401 error from the server.&lt;/P&gt;&lt;P&gt;How can i authenticate in the iis server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Nuno Silva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2006 16:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-http-client/m-p/1406367#M196055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-05T16:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: IF_HTTP_CLIENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-http-client/m-p/1406368#M196056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone got any ideas on how to pass the authentication credentials?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Nuno Silva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 08:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-http-client/m-p/1406368#M196056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T08:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: IF_HTTP_CLIENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-http-client/m-p/1406369#M196057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method http_client-&amp;gt;request-&amp;gt;set_authorization&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        username = 'xyz'&lt;/P&gt;&lt;P&gt;        password = 'xxx'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 08:08:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-http-client/m-p/1406369#M196057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T08:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF_HTTP_CLIENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-http-client/m-p/1406370#M196058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Silva,&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;P&gt;           I have use the same thing thing in Different Way, Like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We Don't have any http server . but as per our requirement we have to upload a file into SAP Daily a night  01.00 AM. We have tried this this thing with local PC in the same network but it will not work , Then we create a FTP server . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have created our legecy system like that it's will donwnload the file in FTP server at 12.00. and SAP will catch from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will be useful.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Swati....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 07:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-http-client/m-p/1406370#M196058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T07:01:24Z</dc:date>
    </item>
  </channel>
</rss>

