javascript : how to send request in restful
- by user495688
Hello I want to ask you something
how do I send a request to the webservice (restful) if the parameters which I will send more than one parameter?
edit:
this.sendRequest = function(){
var url="http://localhost:8081/inlinetrans/";
var client = new XMLHttpRequest();
var oriText ="";
var stemText ="";
var folText ="";
client.open("PUT", url, false);
client.setRequestHeader("Content-Type", "text/plain");
client.send(oriText,stemText,folText);
if (client.status == 200){
client.responseText;
}
else{
client.statusText;
}
}
client.send -- contents parameters which i want send to server