urlencoded

    body-parser (urlencoded, extended 옵션)

    request.body에 있는 데이터에 접근하기 위해 사용 //application/json 방식의 Content-Type 데이터 bodyParser.json(); //text/xml 방식의 Content-Type 데이터 bodyParser.text(); //application/x-www-form-urlencoded Content-Type 데이터 bodyParser.urlencoded({extended: true}); extended: true /false 차이점 true : qs모듈을 사용하여 쿼리 스트링 값을 해석 false : querystring 모듈을 사용하여 쿼리 스트링 값을 해석 let data = { info: { name: 'andy', age: 33 }, hobby[1]: sport,..