HEAD request from opera
HEAD request from opera
Hi,
I am trying to send a form with HEAD request using $.ajax().
- $("#userId").val(1);
- $.ajax({
type: "HEAD",
url: "/user/"
data: $("#user").serialize(),
complete: function (XMLHttpRequest, textStatus) {
var hasAccess = XMLHttpRequest.getResponseHeader("hasAccess");
if(hasAccess == null) {
//do somthing
}
else {
//do otherthings
}
}
});
My form is :
- <form id="user" method="HEAD" action="/user/" >
- <input id="userId" name="userId"/>
- </form>
The problem is FF and IE sends the id perfectly. but Chrome and Opera does not send the userId and thats why i am getting userId 0 in my server side code.