<?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: FTP_connect with a proxy server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495567#M840689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my opinion, the proxy settings must be set directly in the destination&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2011 15:38:18 GMT</pubDate>
    <dc:creator>franois_henrotte</dc:creator>
    <dc:date>2011-09-06T15:38:18Z</dc:date>
    <item>
      <title>FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495558#M840680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to connect to an external ftp-server via a proxy FTP-server using function ftp_connect.&lt;/P&gt;&lt;P&gt;I'm using the gateway parameters to connect to the proxy, but the function always returns an error saying that the user doesn't have access to the external FTP-server. I know the users and passwords are correct. Is it the correct way to use the gateway parameters? What is the account parameter for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 12:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495558#M840680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T12:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495559#M840681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check below code... It may help U...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_slen     TYPE i,&lt;/P&gt;&lt;P&gt;        l_error,&lt;/P&gt;&lt;P&gt;        l_pwd(30)  TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS: c_dest TYPE rfcdes-rfcdest VALUE 'SAPFTP',&lt;/P&gt;&lt;P&gt;             c_key  TYPE i              VALUE 26101957.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_error = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;connect to ftp server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_pwd = p_pwd.&lt;/P&gt;&lt;P&gt;  l_slen = STRLEN( l_pwd ).&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HTTP_SCRAMBLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      SOURCE      = l_pwd&lt;/P&gt;&lt;P&gt;      sourcelen   = l_slen&lt;/P&gt;&lt;P&gt;      key         = c_key&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      destination = l_pwd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      text = 'Connect to FTP Server'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Connect to the Server using FTP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      user            = p_user&lt;/P&gt;&lt;P&gt;      password        = l_pwd&lt;/P&gt;&lt;P&gt;      host            = p_host&lt;/P&gt;&lt;P&gt;      rfc_destination = c_dest&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      handle          = w_hdl&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS          = 1.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR : w_outfile, w_file_count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE 'ERC/GLOBALSAP/M_ERC_GLOBALSAP_COACODE' TO w_outfile.&lt;/P&gt;&lt;P&gt;  PERFORM download_to_ftp TABLES it_coacode USING w_outfile.&lt;/P&gt;&lt;P&gt;  w_file_count = w_file_count + 1.&lt;/P&gt;&lt;P&gt;  CLEAR : w_outfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To disconnect the FTP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'FTP_DISCONNECT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      handle = w_hdl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To disconnect the RFC Connection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'RFC_CONNECTION_CLOSE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      destination = c_dest&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS      = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM download_to_ftp TABLES it_tab&lt;/P&gt;&lt;P&gt;                     USING l_string TYPE char64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FTP_R3_TO_SERVER'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      handle         = w_hdl&lt;/P&gt;&lt;P&gt;      fname          = l_string&lt;/P&gt;&lt;P&gt;      character_mode = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      text           = it_tab[]&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      tcpip_error    = 1&lt;/P&gt;&lt;P&gt;      command_error  = 2&lt;/P&gt;&lt;P&gt;      data_error     = 3&lt;/P&gt;&lt;P&gt;      OTHERS         = 4.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4&lt;/P&gt;&lt;P&gt;            RAISING invalid_output_file.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " download_to_ftp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 12:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495559#M840681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T12:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495560#M840682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was not my question. I know how to connect directly to an FTP-server.&lt;/P&gt;&lt;P&gt;My question is how to connect via a proxy-server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 13:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495560#M840682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T13:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495561#M840683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobody has ever done this before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 15:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495561#M840683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T15:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495562#M840684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi wim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have the same problem. now - do you have a nice solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;manually i have transfer data via http-proxy in ftp with total commander - a nice quick ftp-client. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;###&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(USER) TYPE  C&lt;/P&gt;&lt;P&gt;*"             VALUE(PASSWORD) TYPE  C&lt;/P&gt;&lt;P&gt;*"             VALUE(ACCOUNT) TYPE  C OPTIONAL&lt;/P&gt;&lt;P&gt;*"             VALUE(HOST) TYPE  C&lt;/P&gt;&lt;P&gt;*"             VALUE(RFC_DESTINATION) LIKE  RFCDES-RFCDEST&lt;/P&gt;&lt;P&gt;*"             VALUE(GATEWAY_USER) TYPE  C OPTIONAL&lt;/P&gt;&lt;P&gt;*"             VALUE(GATEWAY_PASSWORD) TYPE  C OPTIONAL&lt;/P&gt;&lt;P&gt;*"             VALUE(GATEWAY_HOST) TYPE  C OPTIONAL&lt;/P&gt;&lt;P&gt;*"       EXPORTING&lt;/P&gt;&lt;P&gt;*"             VALUE(HANDLE) TYPE  I&lt;/P&gt;&lt;P&gt;*"       EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"              NOT_CONNECTED&lt;/P&gt;&lt;P&gt;####&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the http-proxy in own case runs on port 8080, we have put in parameter gateway_host in this syntax: XXX.XXX.XXX.XXX 8080&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be a problem of rfc-destination and unicode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saphttpa, saphttp or sapftp and sapftpa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on os in a dos-box ftp with proxy does not work. with sapftp on os i become a connect with following syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sapftp&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open XXX.XXX.XXX.XXX 8080&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected to XXX.XXX.XXX.XXX Port 8080.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hm, why i become this result not in abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;christoph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 16:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495562#M840684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T16:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495563#M840685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi wim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the solution is in this dev_ftp tail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[1992] connect request host : &amp;lt;proxy_host&amp;gt;, user : &amp;lt;user&amp;gt;@&amp;lt;ftp_host&amp;gt;&lt;/P&gt;&lt;P&gt;[1992] Connected to &amp;lt;proxy_host&amp;gt; Port 21.&lt;/P&gt;&lt;P&gt; - NI handle: 1&lt;/P&gt;&lt;P&gt;[1992] FTP server : 220 rev-proxy29 FTP server (Version 1.9.2.2 - 2004/03/30 10:42:46) ready.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[1992] ---&amp;gt; &amp;lt;user&amp;gt;@&amp;lt;ftp_host&amp;gt;&lt;/P&gt;&lt;P&gt;[1992] FTP server : 331 Password required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[1992] ---&amp;gt; *****&lt;/P&gt;&lt;P&gt;[1992] FTP server : 230 user logged in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[1992] ---&amp;gt; TYPE I&lt;/P&gt;&lt;P&gt;[1992] FTP server : 200 Type set to IMAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;christoph in cooperation with andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 14:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495563#M840685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T14:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495564#M840686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We were not able to solve this issue. So for specific external FTP-servers the authentication was removed from the proxy and then everything worked fine...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 09:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495564#M840686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T09:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495565#M840687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah ok - we have no authentication on the proxy - only authentication on ftp. do you know about sftp (ftp via ssh) - it will be supported from sapftp? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have a http-proxy with ftp support - that is the right title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;christoph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 19:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495565#M840687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T19:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495566#M840688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christoph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do you get this output? What do you pass to the FM 'FTP_CONNECT' to get a connection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_userid = &lt;/P&gt;&lt;P&gt;lv_pwd   =&lt;/P&gt;&lt;P&gt;lv_rfcdst = 'SAPFTP'.&lt;/P&gt;&lt;P&gt; lv_host =&lt;/P&gt;&lt;P&gt;lv_rfcgwhost =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      user                   = lv_userid&lt;/P&gt;&lt;P&gt;      password               = lv_pwd&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ACCOUNT                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      host                   = lv_host&lt;/P&gt;&lt;P&gt;      rfc_destination        = lv_rfcdst&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    gateway_user           =  &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    gateway_password       = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      gateway_host           = lv_rfcgwhost&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      handle                 = lv_handle&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_connected          = 1&lt;/P&gt;&lt;P&gt;      OTHERS                 = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hubert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 08:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495566#M840688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T08:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495567#M840689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my opinion, the proxy settings must be set directly in the destination&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 15:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495567#M840689</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2011-09-06T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: FTP_connect with a proxy server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495568#M840690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello François,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to access an FTP Server via a proxy server as well - but it doesn't seem to work.&lt;/P&gt;&lt;P&gt;I can connect to that FTP Server via the same proxy with FileZialla so I know the users and PWDs are working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I provide the proxy information (host, user and PWD) within the RFC connection - or what do you mean by destination?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FTP trace (run program RSFTP001) gives the following result:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
trc file: "dev_ftp", trc level: 2, release: "700"

Tue Sep 27 10:37:26 2011
[7299248] sccsid:@(#) $Id: //bas/700_REL/src/krn/ftp/ftpmain.c#17 $ SAP
@(#) $Id: //bas/700_REL/src/krn/ftp/ftp.c#4 $ SAP
@(#) $Id: //bas/700_REL/src/krn/ftp/ftpcmd.c#4 $ SAP
sapftp.ini file path : /usr/sap/D2E/DVEBMGS10/exe/sapftp.ini
SAPFTP Passive mode set to = 0
[7299248] FTP Start : argc - 6 a0 - /usr/sap/D2E/DVEBMGS10/exe/sapftp
g56e sapgw10 74691815 CPIC_TRACE=2 IDX=1
[7299248] RFC Version 700
[7299248] Install server functions
[7299248] Call RfcAccept
[7299248] Enter RfcDispatch loop
[7299248] Partner codepage 4102
[7299248] connect request host : ftp.host.com , user : FTPUser
[7299248] gateway host : proxy.lan.net , user : ProxyUser
[7299248] Connected to proxy.lan.net Port 21.
- NI handle: 1
[7299248] FTP server : 220 Proxy FTP Service
[7299248]    &amp;gt; USER ProxyUser
[7299248] FTP server : 331 Enter password.
[7299248]    &amp;gt; *****
[7299248] FTP server : 530-User Access denied.
530-
530-Usage: USER username@proxyusername@hostname
530        PASS password@proxypassword
[7299248] FTP disconnect - NI handle : 1
[7299248]    &amp;gt; QUIT
[7299248] FTP server : 221 Service closing control connection.
[7299248] FTP Stop&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my coding I scrambled both PWDs with FM 'HTTP_SCRAMBLE' using key '26101957'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried as well setting the parameter user to  (using the scrambeld PWDs) but this gives the same resulst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a part of my code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  zz_test_ftp.


PARAMETERS: user(50) TYPE c LOWER CASE,
            pwd(60) TYPE c LOWER CASE,
            host(64) TYPE c LOWER CASE,


            gw_user(30) TYPE c LOWER CASE,
            gw_pwd(30) TYPE c LOWER CASE,
            gw_host(30) TYPE c LOWER CASE,

            cmd1(80) TYPE c LOWER CASE,
            cmd2(80) TYPE c LOWER CASE,
            cmd3(80) TYPE c LOWER CASE,
            dest LIKE rfcdes-rfcdest DEFAULT 'SAPFTPA',
            compress TYPE c DEFAULT 'N'.

DATA: hdl TYPE i,
      key TYPE i VALUE 26101957,
      slen TYPE i.

DATA: BEGIN OF result OCCURS 0,
      line(100) TYPE c,
      END OF result.

SET EXTENDED CHECK OFF.
slen = STRLEN( pwd ).
CALL FUNCTION 'HTTP_SCRAMBLE'
  EXPORTING
    SOURCE      = pwd
    sourcelen   = slen
    key         = key
  IMPORTING
    destination = pwd.

slen = STRLEN( gw_pwd ).
CALL FUNCTION 'HTTP_SCRAMBLE'
  EXPORTING
    SOURCE      = gw_pwd
    sourcelen   = slen
    key         = key
  IMPORTING
    destination = gw_pwd.

"concatenate user '@' gw_user '@' host into USER.
"concatenate pwd '@' gw_pwd into PWD.

CALL FUNCTION 'FTP_CONNECT'
  EXPORTING
    user             = user
    password         = pwd
    account          = user
    host             = host
    rfc_destination  = dest
    gateway_user     = gw_user
    gateway_password = gw_pwd
    gateway_host     = gw_host
  IMPORTING
    handle           = hdl.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 09:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-connect-with-a-proxy-server/m-p/3495568#M840690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-27T09:05:32Z</dc:date>
    </item>
  </channel>
</rss>

