What is the syntax to do a cross-domain XMLHTTPREQUEST to an FTP server?

前端 未结 3 683
攒了一身酷
攒了一身酷 2020-12-03 11:02

I have an webDav CORS plugin, which I can use to POST/PUT/GET/REMOVE/ALLDOCS files on a webDav server.

I now want to do the same for FTP, but I\'m struggling to get

3条回答
  •  既然无缘
    2020-12-03 11:42

    oReq.open("PUT", "ftp://`:`@mydomain.de/folder/test.txt", true);
    
    req.setRequestHeader('Content-Type', "text/plain");
    
    req.send("Content of test.txt. This will be in test.txt");
    

提交回复
热议问题