{"id":39,"date":"2008-07-31T06:52:17","date_gmt":"2008-07-31T13:52:17","guid":{"rendered":"http:\/\/cknotes.com\/?p=39"},"modified":"2008-07-31T06:52:17","modified_gmt":"2008-07-31T13:52:17","slug":"ftp-proxy-methods","status":"publish","type":"post","link":"https:\/\/cknotes.com\/ftp-proxy-methods\/","title":{"rendered":"FTP Proxy Methods"},"content":{"rendered":"<p><strong>Question:<\/strong><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-US\">I need to connect to an ftp server and have to use the following command: ftp:\/\/username:password@hosname<\/span><\/p>\n<p><span lang=\"EN-US\">That means I\u2019m not able to use the standard connection (first connect to host, then enter username and then password).\u00a0 Is this possible using the Chilkat FTP2 component?<br \/>\n<\/span><\/p>\n<p><strong>Answer:<\/strong><\/p>\n<p>Yes.\u00a0 There are a number of different FTP proxy methods used by different types of proxy servers.\u00a0 Chilkat supports 6 different methods via the ProxyMethod property:<\/p>\n<p><strong>ProxyMethod = 1<\/strong> (SITE site)<\/p>\n<blockquote><p>USER ProxyUsername<br \/>\nPASS ProxyPassword<br \/>\nSITE Hostname<br \/>\nUSER Username<br \/>\nPASS Password<\/p><\/blockquote>\n<p><strong>ProxyMethod = 2<\/strong> (USER user@site)<\/p>\n<blockquote><p>USER Username@Hostname:Port<br \/>\nPASS Password<\/p><\/blockquote>\n<p><strong>ProxyMethod = 3<\/strong> (USER with login)<\/p>\n<blockquote><p>USER ProxyUsername<br \/>\nPASS ProxyPassword<br \/>\nUSER Username@Hostname:Port<br \/>\nPASS Password<\/p><\/blockquote>\n<p><strong>ProxyMethod = 4<\/strong> (USER\/PASS\/ACCT)<\/p>\n<blockquote><p>USER Username@Hostname:Port ProxyUsername<br \/>\nPASS Password<br \/>\nACCT ProxyPassword<\/p><\/blockquote>\n<p><strong>ProxyMethod = 5<\/strong> (OPEN site)<\/p>\n<blockquote><p>USER ProxyUsername<br \/>\nPASS ProxyPassword<br \/>\nOPEN Hostname<br \/>\nUSER Username<br \/>\nPASS Password<\/p><\/blockquote>\n<p><strong>ProxyMethod = 6<\/strong> (firewallId@site)<\/p>\n<blockquote><p>USER ProxyUsername@Hostname<br \/>\nUSER Username<br \/>\nPASS Password<\/p><\/blockquote>\n<blockquote><\/blockquote>\n<p>The FTP2 component has these relevant properties:<\/p>\n<blockquote><p>Username<br \/>\nPassword<br \/>\nProxyUsername<br \/>\nProxyPassword<br \/>\nProxyHostname<br \/>\nProxyPort<br \/>\nPort<br \/>\nProxyMethod<\/p><\/blockquote>\n<p>Connecting via a proxy is as simple as setting the properties to appropriate values.\u00a0 I&#8217;m sure you may not know exactly which ProxyMethod you need.\u00a0 To help, there is a DetermineProxy method that can be called to automate the testnig of each proxy method.\u00a0 Set the properties (ProxyUsername, ProxyHostname, etc.) to appropriate values and then call DetermineProxyMethod and let the component try to discover the proxy method that works.\u00a0 It will return 0 if none were found, a value from 1 to 6 to indicate which proxy method was successful, or -1 for error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: I need to connect to an ftp server and have to use the following command: ftp:\/\/username:password@hosname That means I\u2019m not able to use the standard connection (first connect to host, then enter username and then password).\u00a0 Is this possible using the Chilkat FTP2 component? Answer: Yes.\u00a0 There are a number of different FTP proxy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[440,462],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ftp","tag-proxy"],"_links":{"self":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":0,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"wp:attachment":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}