크롬 POST 만들어 보내기

wakira 2020. 4. 30. 23:23

client=new XMLHttpRequest();
client.open('POST', "http://14.52.96.94:4600/apitest/Login2.php", true);
client.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
client.send("ID=abc@naver.com&Password=asas");

 

 

client=new XMLHttpRequest(); 
client.open('POST', "http://14.52.96.94:4600/apitest/Login2.php", true); 
client.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 

client.send('{"id":"abc@naver.com","password":"asas"}');