HI am sending the header information (like below)to node.js on the server side, but it is not working.
How to pass the header information to server from client. and how to get on the server side .
Pls if anyone knows... let me know
this is the ajax request call fron client html page:
client.html:
$.ajax({
// url:'
http://10.163.14.52:8888/all',
url:'http://IPaddress:port/getTaluk/',
type:'POST',
datatype:'json',
data:inputVal,
headers : {
'emp_value':s,
'signature':hash,
'timestamp':t
},
complete:function(){
alert(":"+data);
}
});
on the server side am getting like this using nodejs:
console.log("emp_value:"+req.headers['emp_value']);
but i can't able to get it.
--
Thanks,
N. Srividhya.