More examples:

https://developer.mozilla.org/En/HTTP_access_control

 

From: [email protected] [mailto:[email protected]] 
On Behalf Of André Fiedler
Sent: Friday, February 25, 2011 2:22 PM
To: [email protected]
Subject: [Moo] FTP via XHR to same domain, how?

 

Hi folks, hope you are well? :o)


It´s not really a mootools related question, but i hope there are a lot of 
experts here.


This page mentiones, I can do a FTP requests to my own server:
https://developer.mozilla.org/en/using_xmlhttprequest


so I tried this using Google Chrome 10:


req.open('LIST', 'ftp://user123:[email protected]/', true);
req.onreadystatechange = handler;
req.send();


but i get this exception:


XMLHttpRequest cannot load ftp://mydomain.net/. Origin http://www.mydomain.net 
is not allowed by Access-Control-Allow-Origin.


Did someone try this? I want to exec some simple FTP commands (list,get,put) on 
the same domain.

 

greetings André

Reply via email to