Can I evaluate the status of a URL on a remote server with JavaScript? Is it considered a cross-domain reference even if I don’t get the actual contents of a document?
If it’s not possible through plain JavaScript, could I perhaps load the document in an iframe?
What I would like to do is to check if the HTTP status code is 200 and if the Content-Type is text/xml, to make sure the URL a user entered is valid.
I’m using YUI btw.
Not in a standard browser security context (which I’ll assume unless you say otherwise as it covers almost all use cases).
Yes.
No, and even if you could you wouldn’t have access to the HTTP headers.