使用Javascript实现ftp [英] Implementing ftp using Javascript
问题描述
我不明白为什么不能javascript让ftp调用?为什么我们必须使用服务器提出这样的请求?
I dont understand why cant javascript make ftp calls?. Why do we have to make such a request using server?
即使浏览器也能够验证和浏览ftp服务器。也许使用浏览器API来做到这一点?
Even Browsers have ability to authenticate and browse a ftp server. Maybe use browser api's to do it?
推荐答案
好的,在这里回答我自己的问题。
Ok, answering my own question here.
我浏览了 XMLHTTPRequest 上的Mozilla文档。它具体地说 -
$ b
I went through Mozilla docs on XMLHTTPRequest. It specifically says -
尽管有它的名字,XMLHttpRequest可以用来检索任何类型的数据,不仅仅是XML,而且它支持其他协议(包括文件和ftp)。
Despite its name, XMLHttpRequest can be used to retrieve any type of data, not just XML, and it supports protocols other than HTTP (including file and ftp).
所以,我对此感到满意。 JavaScript可以使用这个调用ftp。
So, I am satisfied with this. JavaScript can make calls to ftp using this.
这篇关于使用Javascript实现ftp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!