{"action":"created","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/10873","repository_url":"https://api.github.com/repos/ariya/phantomjs","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/10873/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/10873/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/10873/events","html_url":"https://github.com/ariya/phantomjs/issues/10873","id":12086870,"number":10873,"title":"body/data not sent in HTTP DELETE","user":{"login":"ariya","id":7288,"avatar_url":"https://avatars.githubusercontent.com/u/7288?v=3","gravatar_id":"","url":"https://api.github.com/users/ariya","html_url":"https://github.com/ariya","followers_url":"https://api.github.com/users/ariya/followers","following_url":"https://api.github.com/users/ariya/following{/other_user}","gists_url":"https://api.github.com/users/ariya/gists{/gist_id}","starred_url":"https://api.github.com/users/ariya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariya/subscriptions","organizations_url":"https://api.github.com/users/ariya/orgs","repos_url":"https://api.github.com/users/ariya/repos","events_url":"https://api.github.com/users/ariya/events{/privacy}","received_events_url":"https://api.github.com/users/ariya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ariya/phantomjs/labels/old.Priority-Medium","name":"old.Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/old.Status-New","name":"old.Status-New","color":"ededed"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/old.Type-Defect","name":"old.Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2012-11-16T05:24:17Z","updated_at":"2016-09-09T14:55:41Z","closed_at":"2016-09-09T14:55:41Z","body":"_**[Travis.G...@gmail.com](http://code.google.com/u/114510609752042367163/) commented:**_\r\n> <b>Which version of PhantomJS are you using? Tip: run 'phantomjs --version'.</b>\n1.7.0 &amp; HEAD at 40a14b72b132468f4bbdfc6ff2dca30407cf866e\r\n> \r\n> <b>What steps will reproduce the problem?</b>\n1.  Configure a web server with an appropriate route and log parameters received.\r\n> <b>2.</b>\n                $.ajax({\r\n>                     contentType: 'application/json',\r\n>                     url: &quot;/posts/destroy&quot;,\r\n>                     type: 'DELETE',\r\n>                     dataType: 'json',\r\n>                     data: '{&quot;subs&quot;:[{&quot;c_id&quot;:2,&quot;c_list_id&quot;:2}]}',                                                                                                                                                       \r\n>                     modal: self\r\n>                 }); \r\n>  \r\n> 3.   observe that on the server, it is received but the data (subs) is missing.\r\n> 4.   Running this as a POST instead of DELETE observe that the data is received.\r\n>    4a   e.g. in rails change your route to post and the type above to 'POST'\r\n>    4b   observe receipt of data\r\n> \r\n> \r\n> <b>What is the expected output? What do you see instead?</b>\nThe data component should be included and received by the server for DELETE.\r\n> \r\n> <b>Which operating system are you using?</b>\nOSX 10.7.4 &amp; Centos 6.2\r\n> \r\n> <b>Did you use binary PhantomJS or did you compile it from source?</b>\nbinary 1.7.0  &amp; compiled HEAD\r\n> \r\n> <b>Please provide any additional information below.</b>\n\r\n> It looks like the entityBody is stripped when using DELETE.  From what I can tell, it's legal to send data using DELETE.  \r\n> Additionally this works in latest firefox, chrome, ie9, and safari.\r\n\r\n**Disclaimer:**\r\nThis issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, [Issue #873](http://code.google.com/p/phantomjs/issues/detail?id=873).\r\n:star2: &nbsp; **4** people had starred this issue at the time of migration."},"comment":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/comments/245937643","html_url":"https://github.com/ariya/phantomjs/issues/10873#issuecomment-245937643","issue_url":"https://api.github.com/repos/ariya/phantomjs/issues/10873","id":245937643,"user":{"login":"Vitallium","id":1894248,"avatar_url":"https://avatars.githubusercontent.com/u/1894248?v=3","gravatar_id":"","url":"https://api.github.com/users/Vitallium","html_url":"https://github.com/Vitallium","followers_url":"https://api.github.com/users/Vitallium/followers","following_url":"https://api.github.com/users/Vitallium/following{/other_user}","gists_url":"https://api.github.com/users/Vitallium/gists{/gist_id}","starred_url":"https://api.github.com/users/Vitallium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vitallium/subscriptions","organizations_url":"https://api.github.com/users/Vitallium/orgs","repos_url":"https://api.github.com/users/Vitallium/repos","events_url":"https://api.github.com/users/Vitallium/events{/privacy}","received_events_url":"https://api.github.com/users/Vitallium/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T14:55:41Z","updated_at":"2016-09-09T14:55:41Z","body":"Fixed in 2.1.1"}}
{"actor":{"display_login":"Vitallium"}}