I am getting a 400 (Bad Request) error with ajax and codeigniter
this is my ajax call
$.ajax({
type: "POST",
url: '<?php echo base_url(); ?>query/sensor/'+ test + / + past + / + id + / + port + / + device,
success: function(res) {
if (res)
{
console.log("res"+res);
}
}
});
}
is it a proper ajax url?