{"action":"created","issue":{"url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/31","labels_url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/31/comments","events_url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/31/events","html_url":"https://github.com/FubarDevelopment/restsharp.portable/issues/31","id":83540366,"number":31,"title":"HttpRequestException 500 (Internal Server Error) - Hangs in iOS POST Request","user":{"login":"adamfisher","id":1834711,"avatar_url":"https://avatars.githubusercontent.com/u/1834711?v=3","gravatar_id":"","url":"https://api.github.com/users/adamfisher","html_url":"https://github.com/adamfisher","followers_url":"https://api.github.com/users/adamfisher/followers","following_url":"https://api.github.com/users/adamfisher/following{/other_user}","gists_url":"https://api.github.com/users/adamfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/adamfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamfisher/subscriptions","organizations_url":"https://api.github.com/users/adamfisher/orgs","repos_url":"https://api.github.com/users/adamfisher/repos","events_url":"https://api.github.com/users/adamfisher/events{/privacy}","received_events_url":"https://api.github.com/users/adamfisher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-01T14:49:40Z","updated_at":"2015-06-03T00:26:10Z","closed_at":null,"body":"I am trying to POST data using a Xamarin iOS unit test project and I can successfully make GET requests but when I try to do a POST it always fails. My web service also has Swagger documentation and I was able to POST data using that but never with this library. Is this a good example of how to call it for a POST request?\r\n\r\nWhen the client.Execute() method is invoked, it returns the error below. I also verified no network traffic occurs from the mobile client when proxy through Fiddler.\r\n\r\n```csharp\r\nvar payload = new User()\r\n{\r\n\tFirstName =\"Suzy\",\r\n\tLastName = \"Q\",\r\n\tAge = 43\r\n};\r\n\r\nusing (var client = new RestClient(\"http://mywebservice.com:8308\"))\r\n{\r\n\tvar request = new RestRequest(\"api/Accounts/Register\", HttpMethod.Post);\r\n\trequest.AddJsonBody (payload);\r\n\tvar result = await client.Execute<UserRegistrationResponse>(request);\r\n\tvar userId = result.Data.UserId;\r\n}\r\n```\r\n\r\n![ios simulator screen shot jun 1 2015 10 46 06 am](https://cloud.githubusercontent.com/assets/1834711/7915486/d63b7afc-084b-11e5-9cd0-1fb6f66ae77e.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/comments/108139292","html_url":"https://github.com/FubarDevelopment/restsharp.portable/issues/31#issuecomment-108139292","issue_url":"https://api.github.com/repos/FubarDevelopment/restsharp.portable/issues/31","id":108139292,"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":"2015-06-03T00:26:10Z","updated_at":"2015-06-03T00:26:10Z","body":"I tried to test this project using Xamarin Studio, but I forgot how bad it is... I'll try again tomorrow."}}