javascript - What ways can i do Authication Using POST Ajax? -
i trying send command through post ajax call, this. command suppose move ip camera left,right, down , up.
file.cgi?move=right
i post script using:
$.ajax({ method: "post", username:"admin", password:"admin", url: "file/cgi-bin/view/cammove.cgi", data: "move=up" });
when using post not see results when in browser works, when remove username , password function returns 400 error.
would know how work out? thank all.
Comments
Post a Comment