Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Thanx Jesse, and how can i put the result in Console.WriteLine? Because i can do with Post method but i can not show the result. Commented Jan 15, 2016 at 20:34
  • You should be able to do it exactly the same as with the GET. Nothing about Console changes just because its a POST instead of GET. Commented Jan 15, 2016 at 20:35
  • It gives error -response {StatusCode: 405, ReasonPhrase: 'Method Not Allowed', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { X-SourceFiles: =?UTF-8?B?RDpcQnVyZWF1YmxhZFxIZXJoYWxpbmdzb2VmZW5pbmdlbjJXZWJBUElcSGVyaGFsaW5nc29lZmVuaW5nZW4yV2ViQVBJ?= Cache-Control: private Date: Fri, 15 Jan 2016 20:52:58 GMT Server: Microsoft-IIS/10.0 X-Powered-By: ASP.NET Content-Length: 5412 Allow: GET Allow: HEAD Allow: OPTIONS Allow: TRACE Content-Type: text/html; charset=utf-8 }} System.Net.Http.HttpResponseMessage Commented Jan 15, 2016 at 20:54
  • Thanx Jesse. After i did shut down it works like a charm. Commented Jan 15, 2016 at 21:40
  • @AttilaAlan No problem, feel free to upvote or mark as answer if you found this helpful Commented Jan 18, 2016 at 18:14