{"action":"opened","issue":{"url":"https://api.github.com/repos/yegor256/takes/issues/229","labels_url":"https://api.github.com/repos/yegor256/takes/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/yegor256/takes/issues/229/comments","events_url":"https://api.github.com/repos/yegor256/takes/issues/229/events","html_url":"https://github.com/yegor256/takes/issues/229","id":72252143,"number":229,"title":"PsGithub sends invalid POST request","user":{"login":"dmzaytsev","id":9972909,"avatar_url":"https://avatars.githubusercontent.com/u/9972909?v=3","gravatar_id":"","url":"https://api.github.com/users/dmzaytsev","html_url":"https://github.com/dmzaytsev","followers_url":"https://api.github.com/users/dmzaytsev/followers","following_url":"https://api.github.com/users/dmzaytsev/following{/other_user}","gists_url":"https://api.github.com/users/dmzaytsev/gists{/gist_id}","starred_url":"https://api.github.com/users/dmzaytsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmzaytsev/subscriptions","organizations_url":"https://api.github.com/users/dmzaytsev/orgs","repos_url":"https://api.github.com/users/dmzaytsev/repos","events_url":"https://api.github.com/users/dmzaytsev/events{/privacy}","received_events_url":"https://api.github.com/users/dmzaytsev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-30T18:58:55Z","updated_at":"2015-04-30T18:58:55Z","closed_at":null,"body":"PsGithub puts POST-parameters into the request uri\r\n```\r\nPOST /login/oauth/access_token?code=11111&redirect_uri=http%3A%2F%2Fwww.example.com%2F%3Fcode%3DGitHubCode&client_secret=key&client_id=app HTTP/1.1\r\nAccept: application/xml\r\nHost: localhost:50804\r\nConnection: keep-alive\r\nContent-type: application/x-www-form-urlencoded\r\nContent-Length: 0\r\n\r\n```\r\n\r\ninstead the request body\r\n\r\n```\r\nPOST /login/oauth/access_token HTTP/1.1\r\nAccept: application/xml\r\nHost: localhost:50804\r\nConnection: keep-alive\r\nContent-type: application/x-www-form-urlencoded\r\n\r\ncode=11111&redirect_uri=http%3A%2F%2Fwww.example.com%2F%3Fcode%3DGitHubCode&client_secret=key&client_id=app\r\n```\r\n\r\nGithub accepts such request but it is undocumented feature I  believe  we should use valid POST requests"}}