Hi,

I'am trying to use Ajax.Request to send a GET request with specific
values in header part.
I use the following code :

function sendMyRequest(url, user) {
        var myAjax = new Ajax.Request(url, {
                method: 'get',
                requestHeaders: { REMOTE_USER:user },
                onSuccess: function() { alert("OK"); },
                onFailure: function() { alert("KO"); }
        });
}

After I invoked this function, the request header sent is :

Host=*********
...
Access-Control-Request-Method=GET
Access-Control-Request-Headers=remote_user,x-prototype-version,x-
requested-with

So I don't have a valid field for "REMOTE_USER", as defined in my
function.
I want a request Header similar to :

Host=*********
...
REMOTE_USER=<user>

How to do it ?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to