[[Content-Type]]に`application/x-www-form-urlencoded`を指定する。 ```js $axios.$post<Response>(`http://hogehoge`, body, { headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, } ) ``` `body`は単なるObject型だとNG。[[URLのクエリパラメータへ変換]]する必要あり。 ```ts import qs from 'qs' const data = new URLSearchParams({ id: 100, name: "hoge" }) const body = qs.stringify(data.toString()) ``` ## 参考 - [Axios post method requesting with x\-www\-form\-urlencoded content type](https://gist.github.com/akexorcist/ea93ee47d39cf94e77802bc39c46589b) - [axios/axios: Promise based HTTP client for the browser and node\.js](https://github.com/axios/axios#using-applicationx-www-form-urlencoded-format)