well you've obfuscated the domain, but it sort of looks like you might be
trying to make a request from www.mydomain.net to mydomain.net. I know you
cant make xhr requests from http to https on the same domain, but you might
be able to get it working from ftp. They note in the URL you posted that the
status codes don't work the same way on FTP that they do on HTTP. I'm not
looking at the mootools source right now but even if you did get it working,
your data might not come through onSuccess because success looks for 2xx
http codes. It might be in onFailure

-Andrew

On Fri, Feb 25, 2011 at 3:12 PM, Matthew Hazlett <[email protected]> wrote:

> 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