86 <td><a href="#E5Ftp.connect">connect</a></td> |
86 <td><a href="#E5Ftp.connect">connect</a></td> |
87 <td>Public method to connect to the given FTP server.</td> |
87 <td>Public method to connect to the given FTP server.</td> |
88 </tr> |
88 </tr> |
89 <tr> |
89 <tr> |
90 <td><a href="#E5Ftp.login">login</a></td> |
90 <td><a href="#E5Ftp.login">login</a></td> |
91 <td>Public method to login to the FTP server.</td> |
91 <td></td> |
92 </tr> |
92 </tr> |
93 <tr> |
93 <tr> |
94 <td><a href="#E5Ftp.setProxy">setProxy</a></td> |
94 <td><a href="#E5Ftp.setProxy">setProxy</a></td> |
95 <td>Public method to set the proxy configuration.</td> |
95 <td>Public method to set the proxy configuration.</td> |
96 </tr> |
96 </tr> |
201 </dl> |
201 </dl> |
202 <a NAME="E5Ftp.login" ID="E5Ftp.login"></a> |
202 <a NAME="E5Ftp.login" ID="E5Ftp.login"></a> |
203 <h4>E5Ftp.login</h4> |
203 <h4>E5Ftp.login</h4> |
204 <b>login</b>(<i>user="", password="", acct=""</i>) |
204 <b>login</b>(<i>user="", password="", acct=""</i>) |
205 |
205 |
206 <p> |
|
207 Public method to login to the FTP server. |
|
208 </p> |
|
209 <p> |
|
210 This extended method respects the FTP proxy configuration. There are |
|
211 many different FTP proxy products available. But unfortunately there |
|
212 is no standard for how o traverse a FTP proxy. The lis below shows |
|
213 the sequence of commands used. |
|
214 </p> |
|
215 <p> |
|
216 <table> |
|
217 <tr><td>user</td><td>Username for remote host</td></tr> |
|
218 <tr><td>pass</td><td>Password for remote host</td></tr> |
|
219 <tr><td>pruser</td><td>Username for FTP proxy</td></tr> |
|
220 <tr><td>prpass</td><td>Password for FTP proxy</td></tr> |
|
221 <tr><td>remote.host</td><td>Hostname of the remote FTP server</td> |
|
222 </tr> |
|
223 </table> |
|
224 </p> |
|
225 <p> |
|
226 <dl> |
|
227 <dt>E5FtpProxyType.NoProxy:</dt> |
|
228 <dd> |
|
229 USER user<br/> |
|
230 PASS pass |
|
231 </dd> |
|
232 <dt>E5FtpProxyType.NonAuthorizing:</dt> |
|
233 <dd> |
|
234 USER user@remote.host<br/> |
|
235 PASS pass |
|
236 </dd> |
|
237 <dt>E5FtpProxyType.UserAtServer:</dt> |
|
238 <dd> |
|
239 USER pruser<br/> |
|
240 PASS prpass<br/> |
|
241 USER user@remote.host<br/> |
|
242 PASS pass |
|
243 </dd> |
|
244 <dt>E5FtpProxyType.Site:</dt> |
|
245 <dd> |
|
246 USER pruser<br/> |
|
247 PASS prpass<br/> |
|
248 SITE remote.site<br/> |
|
249 USER user<br/> |
|
250 PASS pass |
|
251 </dd> |
|
252 <dt>E5FtpProxyType.Open:</dt> |
|
253 <dd> |
|
254 USER pruser<br/> |
|
255 PASS prpass<br/> |
|
256 OPEN remote.site<br/> |
|
257 USER user<br/> |
|
258 PASS pass |
|
259 </dd> |
|
260 <dt>E5FtpProxyType.UserAtProxyuserAtServer:</dt> |
|
261 <dd> |
|
262 USER user@pruser@remote.host<br/> |
|
263 PASS pass@prpass |
|
264 </dd> |
|
265 <dt>E5FtpProxyType.ProxyuserAtServer:</dt> |
|
266 <dd> |
|
267 USER pruser@remote.host<br/> |
|
268 PASS prpass<br/> |
|
269 USER user<br/> |
|
270 PASS pass |
|
271 </dd> |
|
272 <dt>E5FtpProxyType.AuthResp:</dt> |
|
273 <dd> |
|
274 USER user@remote.host<br/> |
|
275 PASS pass<br/> |
|
276 AUTH pruser<br/> |
|
277 RESP prpass |
|
278 </dd> |
|
279 <dt>E5FtpProxyType.Bluecoat:</dt> |
|
280 <dd> |
|
281 USER user@remote.host pruser<br/> |
|
282 PASS pass<br/> |
|
283 ACCT prpass |
|
284 </dd> |
|
285 </dl> |
|
286 </p> |
|
287 <dl> |
|
288 |
|
289 <dt><i>user</i></dt> |
|
290 <dd> |
|
291 username for the remote host (string) |
|
292 </dd> |
|
293 <dt><i>password</i></dt> |
|
294 <dd> |
|
295 password for the remote host (string) |
|
296 </dd> |
|
297 <dt><i>acct</i></dt> |
|
298 <dd> |
|
299 accounting information for the remote host (string) |
|
300 </dd> |
|
301 </dl> |
|
302 <dl> |
|
303 <dt>Returns:</dt> |
|
304 <dd> |
|
305 response sent by the remote host (string) |
|
306 </dd> |
|
307 </dl> |
|
308 <dl> |
|
309 |
|
310 <dt>Raises <b>E5FtpProxyError</b>:</dt> |
|
311 <dd> |
|
312 raised to indicate a proxy related issue |
|
313 </dd> |
|
314 <dt>Raises <b>ftplib.error_reply</b>:</dt> |
|
315 <dd> |
|
316 raised to indicate an FTP error reply |
|
317 </dd> |
|
318 </dl> |
|
319 <a NAME="E5Ftp.setProxy" ID="E5Ftp.setProxy"></a> |
206 <a NAME="E5Ftp.setProxy" ID="E5Ftp.setProxy"></a> |
320 <h4>E5Ftp.setProxy</h4> |
207 <h4>E5Ftp.setProxy</h4> |
321 <b>setProxy</b>(<i>proxyType=E5FtpProxyType.NoProxy, proxyHost="", proxyPort=ftplib.FTP_PORT, proxyUser="", proxyPassword="", proxyAccount=""</i>) |
208 <b>setProxy</b>(<i>proxyType=E5FtpProxyType.NoProxy, proxyHost="", proxyPort=ftplib.FTP_PORT, proxyUser="", proxyPassword="", proxyAccount=""</i>) |
322 |
209 |
323 <p> |
210 <p> |