19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body><a NAME="top" ID="top"></a> |
22 <h1>eric5.E5Network.E5Ftp</h1> |
22 <h1>eric5.E5Network.E5Ftp</h1> |
23 <p> |
23 <p> |
24 Module implementing an extension to the Python FTP class to support FTP proxies. |
24 Module implementing an extension to the Python FTP class to support FTP |
|
25 proxies. |
25 </p> |
26 </p> |
26 <h3>Global Attributes</h3> |
27 <h3>Global Attributes</h3> |
27 <table> |
28 <table> |
28 <tr><td>None</td></tr> |
29 <tr><td>None</td></tr> |
29 </table> |
30 </table> |
157 <h4>E5Ftp.login</h4> |
159 <h4>E5Ftp.login</h4> |
158 <b>login</b>(<i>user="", password="", acct=""</i>) |
160 <b>login</b>(<i>user="", password="", acct=""</i>) |
159 <p> |
161 <p> |
160 Public method to login to the FTP server. |
162 Public method to login to the FTP server. |
161 </p><p> |
163 </p><p> |
162 This extended method respects the FTP proxy configuration. There are many |
164 This extended method respects the FTP proxy configuration. There are |
163 different FTP proxy products available. But unfortunately there is no |
165 many different FTP proxy products available. But unfortunately there |
164 standard for how o traverse a FTP proxy. The lis below shows the sequence |
166 is no standard for how o traverse a FTP proxy. The lis below shows |
165 of commands used. |
167 the sequence of commands used. |
166 </p><p> |
168 </p><p> |
167 <table> |
169 <table> |
168 <tr><td>user</td><td>Username for remote host</td></tr> |
170 <tr><td>user</td><td>Username for remote host</td></tr> |
169 <tr><td>pass</td><td>Password for remote host</td></tr> |
171 <tr><td>pass</td><td>Password for remote host</td></tr> |
170 <tr><td>pruser</td><td>Username for FTP proxy</td></tr> |
172 <tr><td>pruser</td><td>Username for FTP proxy</td></tr> |
171 <tr><td>prpass</td><td>Password for FTP proxy</td></tr> |
173 <tr><td>prpass</td><td>Password for FTP proxy</td></tr> |
172 <tr><td>remote.host</td><td>Hostname of the remote FTP server</td></tr> |
174 <tr><td>remote.host</td><td>Hostname of the remote FTP server</td> |
|
175 </tr> |
173 </table> |
176 </table> |
174 </p><p> |
177 </p><p> |
175 <dl> |
178 <dl> |
176 <dt>E5FtpProxyType.NoProxy:</dt> |
179 <dt>E5FtpProxyType.NoProxy:</dt> |
177 <dd> |
180 <dd> |
303 Class to signal an error related to proxy configuration. |
306 Class to signal an error related to proxy configuration. |
304 </p><p> |
307 </p><p> |
305 The error message starts with a three digit error code followed by a |
308 The error message starts with a three digit error code followed by a |
306 space and the error string. Supported error codes are: |
309 space and the error string. Supported error codes are: |
307 <ul> |
310 <ul> |
308 <li>910: proxy error; the second number gives the category of the proxy error. |
311 <li>910: proxy error; the second number gives the category of the proxy |
309 The original response from the proxy is appended in the next line.</li> |
312 error. The original response from the proxy is appended in the next |
310 <li>930: proxy error; the second number gives the category of the proxy error. |
313 line.</li> |
311 The original response from the proxy is appended in the next line.</li> |
314 <li>930: proxy error; the second number gives the category of the proxy |
312 <li>940: proxy error; the second number gives the category of the proxy error. |
315 error. The original response from the proxy is appended in the next |
313 The original response from the proxy is appended in the next line.</li> |
316 line.</li> |
314 <li>950: proxy error; the second number gives the category of the proxy error. |
317 <li>940: proxy error; the second number gives the category of the proxy |
315 The original response from the proxy is appended in the next line.</li> |
318 error. The original response from the proxy is appended in the next |
|
319 line.</li> |
|
320 <li>950: proxy error; the second number gives the category of the proxy |
|
321 error. The original response from the proxy is appended in the next |
|
322 line.</li> |
316 <li>990: proxy usage is enabled but no proxy host given</li> |
323 <li>990: proxy usage is enabled but no proxy host given</li> |
317 <li>991: proxy usage is enabled but no proxy user given</li> |
324 <li>991: proxy usage is enabled but no proxy user given</li> |
318 <li>992: proxy usage is enabled but no proxy password given</li> |
325 <li>992: proxy usage is enabled but no proxy password given</li> |
319 </ul> |
326 </ul> |
320 </p> |
327 </p> |