{"action":"created","issue":{"url":"https://api.github.com/repos/axios/axios/issues/362","repository_url":"https://api.github.com/repos/axios/axios","labels_url":"https://api.github.com/repos/axios/axios/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/axios/axios/issues/362/comments","events_url":"https://api.github.com/repos/axios/axios/issues/362/events","html_url":"https://github.com/axios/axios/issues/362","id":162693633,"node_id":"MDU6SXNzdWUxNjI2OTM2MzM=","number":362,"title":"Content-Type application/x-www-form-urlencoded","user":{"login":"alborozd","id":7408345,"node_id":"MDQ6VXNlcjc0MDgzNDU=","avatar_url":"https://avatars0.githubusercontent.com/u/7408345?v=4","gravatar_id":"","url":"https://api.github.com/users/alborozd","html_url":"https://github.com/alborozd","followers_url":"https://api.github.com/users/alborozd/followers","following_url":"https://api.github.com/users/alborozd/following{/other_user}","gists_url":"https://api.github.com/users/alborozd/gists{/gist_id}","starred_url":"https://api.github.com/users/alborozd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alborozd/subscriptions","organizations_url":"https://api.github.com/users/alborozd/orgs","repos_url":"https://api.github.com/users/alborozd/repos","events_url":"https://api.github.com/users/alborozd/events{/privacy}","received_events_url":"https://api.github.com/users/alborozd/received_events","type":"User","site_admin":false},"labels":[{"id":122804240,"node_id":"MDU6TGFiZWwxMjI4MDQyNDA=","url":"https://api.github.com/repos/axios/axios/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":183,"created_at":"2016-06-28T14:02:30Z","updated_at":"2018-10-23T12:01:26Z","closed_at":null,"author_association":"NONE","body":"Try to send request with content type application/x-www-form-urlencoded\n\n```\nvar data = Querystring.stringify({ \n                \"grant_type\": \"password\",\n                \"username\": login,\n                \"password\": password\n            });\naxios.post(Urls.login, data);\n```\n\nbut there is no such header in request.\n\nI tried to use code:\n\n```\n  var data = Querystring.stringify({ \n                \"grant_type\": \"password\",\n                \"username\": login,\n                \"password\": password\n            });\n        return axios({\n            method: 'post',\n            url: Urls.login,\n            data: data,\n            headers: {\n                'Content-type': 'application/x-www-form-urlencoded'\n            }\n        });\n```\n\nsame problem\n\njquery code works fine:\n\n```\n$.ajax({\n            url: Urls.login,\n            data: data,\n            type: \"POST\",\n            headers: {\n                'Content-type': 'application/x-www-form-urlencoded'\n            }\n        });\n```\n\nHow can I use axios to send request with this header?\n"},"comment":{"url":"https://api.github.com/repos/axios/axios/issues/comments/432217878","html_url":"https://github.com/axios/axios/issues/362#issuecomment-432217878","issue_url":"https://api.github.com/repos/axios/axios/issues/362","id":432217878,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjIxNzg3OA==","user":{"login":"gp15237125756","id":14339931,"node_id":"MDQ6VXNlcjE0MzM5OTMx","avatar_url":"https://avatars1.githubusercontent.com/u/14339931?v=4","gravatar_id":"","url":"https://api.github.com/users/gp15237125756","html_url":"https://github.com/gp15237125756","followers_url":"https://api.github.com/users/gp15237125756/followers","following_url":"https://api.github.com/users/gp15237125756/following{/other_user}","gists_url":"https://api.github.com/users/gp15237125756/gists{/gist_id}","starred_url":"https://api.github.com/users/gp15237125756/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gp15237125756/subscriptions","organizations_url":"https://api.github.com/users/gp15237125756/orgs","repos_url":"https://api.github.com/users/gp15237125756/repos","events_url":"https://api.github.com/users/gp15237125756/events{/privacy}","received_events_url":"https://api.github.com/users/gp15237125756/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T12:01:26Z","updated_at":"2018-10-23T12:01:26Z","author_association":"NONE","body":"still disgusting here "}}
{"actor":{"display_login":"gp15237125756"}}