I have this curl URL to connect to couchDB.
curl -X PUT http://admin:ulacit@13.90.93.32:5984/test/"001" -d '{"name":"moises"}'
I saw a lot of questions with GET and POST but I didn't find an example with PUT.
Am I doing this the right way?
$.ajax({
crossOrigin: true,
url : 'http://admin:ulacit@13.90.93.32:5984/test/'+user,
type : 'POST',
processData: false,
dataType: 'json',
contentType: 'application/json',
data: {pass:pass,email:email},
success:function(result){
if(result!="error"){
alert("Registro Correcto, Proceda a entrar");
open("login.html","_parent" );
}else{
alert("Usuario Ya Utilizado");
}
},