{"action":"created","issue":{"url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/69","repository_url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable","labels_url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/69/comments","events_url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/69/events","html_url":"https://github.com/FubarDevelopment/restsharp.portable/issues/69","id":156035116,"number":69,"title":"PUT/POST form content is not quite right","user":{"login":"jchannon","id":105126,"avatar_url":"https://avatars.githubusercontent.com/u/105126?v=3","gravatar_id":"","url":"https://api.github.com/users/jchannon","html_url":"https://github.com/jchannon","followers_url":"https://api.github.com/users/jchannon/followers","following_url":"https://api.github.com/users/jchannon/following{/other_user}","gists_url":"https://api.github.com/users/jchannon/gists{/gist_id}","starred_url":"https://api.github.com/users/jchannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchannon/subscriptions","organizations_url":"https://api.github.com/users/jchannon/orgs","repos_url":"https://api.github.com/users/jchannon/repos","events_url":"https://api.github.com/users/jchannon/events{/privacy}","received_events_url":"https://api.github.com/users/jchannon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-20T19:30:49Z","updated_at":"2016-05-20T19:54:48Z","closed_at":null,"body":"Hi,\r\n\r\nWe've spotted something odd when using the below code:\r\n\r\n```\r\n var client = new RestClient(\"http://localhost:1234\"); \r\n client.IgnoreResponseStatusCode = true;\r\n client.Timeout = TimeSpan.FromSeconds(1);\r\n var req = new RestRequest(\"/body\", Method.PUT);\r\n req.AddHeader(\"Content-Type\",\"application/x-www-form-urlencoded\");\r\n req.AddParameter(\"name\",\"john\", ParameterType.RequestBody);\r\n var res = client.Execute(req).Result;\r\n```\r\nIn the screenshot you'll see that the form looks like \"john=john\" and the raw body is \"john\".\r\n\r\nUsing Postman the Form and Body is \"name=john\" as expected\r\n\r\n![screen shot 2016-05-20 at 20 27 13](https://cloud.githubusercontent.com/assets/105126/15439638/5d567c1e-1ec9-11e6-9fe3-53ed50ee3b27.png)"},"comment":{"url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/comments/220703253","html_url":"https://github.com/FubarDevelopment/restsharp.portable/issues/69#issuecomment-220703253","issue_url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/69","id":220703253,"user":{"login":"fubar-coder","id":4739844,"avatar_url":"https://avatars.githubusercontent.com/u/4739844?v=3","gravatar_id":"","url":"https://api.github.com/users/fubar-coder","html_url":"https://github.com/fubar-coder","followers_url":"https://api.github.com/users/fubar-coder/followers","following_url":"https://api.github.com/users/fubar-coder/following{/other_user}","gists_url":"https://api.github.com/users/fubar-coder/gists{/gist_id}","starred_url":"https://api.github.com/users/fubar-coder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fubar-coder/subscriptions","organizations_url":"https://api.github.com/users/fubar-coder/orgs","repos_url":"https://api.github.com/users/fubar-coder/repos","events_url":"https://api.github.com/users/fubar-coder/events{/privacy}","received_events_url":"https://api.github.com/users/fubar-coder/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T19:54:48Z","updated_at":"2016-05-20T19:54:48Z","body":"It's some kind of tough. `application/x-www-form-urlencoded` is very unusual for `PUT` requests, because those are usually for storing data (see [What's the difference between a POST and a PUT HTTP REQUEST?](http://stackoverflow.com/questions/107390/whats-the-difference-between-a-post-and-a-put-http-request)). I agree, that there should be a way to support `application/x-www-form-urlencoded` together with `PUT`. Please let me validate some things first."}}
{"actor":{"display_login":"fubar-coder"}}