Using Owin Self-Host ASP.Net API2 Can't Receive POST Request with data in body instead of query string
<p>I been making a Bot to Receive notification from a Ark: Survival Evolved Game Server and Send them to the Steam account of the player using steam chat system !</p>

<p>well, everything was done greatly with no problem, I tested my work using data sent from a query string, and it works and send the messages etc.</p>

<p>but now that i check using the game server, it won't work.</p>

<p>The Problem, seems to be coming from sending the HTTP POST Request with body content instead of query string as my app will not receive them.</p>

<p>I have made a lot of examples to receive the POST requests but non seems to work,
I hope someone here know how to fix this, I lost all hope as i been working on this for over 5 hours and even ask about it in C# SOChat.</p>

<p>Here is my code : <a href="https://github.com/LuckyPed/Ark-Steam-Notifier-Console/blob/Post-Data/ArkSteamNotifier/ValuesController.cs" rel="nofollow">https://github.com/LuckyPed/Ark-Steam-Notifier-Console/blob/Post-Data/ArkSteamNotifier/ValuesController.cs</a></p>

<p>Non of these seems to work :</p>

<pre><code>    public void Post1(string key, ulong steamid, string notetitle, string message)
    {
        if (!Program.settings.UnSub.Contains(steamid))
        {
            SteamID SID = new SteamID(steamid);
            Program.steamFriends.SendChatMessage(SID, EChatEntryType.ChatMsg, System.DateTime.UtcNow + " UTC ( GMT ) : " + notetitle);
            Thread.Sleep(1000);
            Program.steamFriends.SendChatMessage(SID, EChatEntryType.ChatMsg, message);
        }
    }

    public void Post([FromBody]string key,[FromBody]ulong steamid,[FromBody]string notetitle,[FromBody]string message)
    {
        if (!Program.settings.UnSub.Contains(steamid))
        {
            SteamID SID = new SteamID(steamid);
            Program.steamFriends.SendChatMessage(SID, EChatEntryType.ChatMsg, System.DateTime.UtcNow + " UTC ( GMT ) : " + notetitle);
            Thread.Sleep(1000);
            Program.steamFriends.SendChatMessage(SID, EChatEntryType.ChatMsg, message);
        }
    }

    public class MyFormData
    {
        public string Data { get; set; }
    }

    public void Post([FromBody]MyFormData formData)
    {
    }

    public void Post([FromBody]MyData formData)
    {
    }

    public class MyData
    {
        public string key { get; set; }
        public string steamid { get; set; }
        public string message { get; set; }
        public string notetitle { get; set; }
    }

    public void Post(string value)
    {
    }

    public void Post1([FromBody]string value)
    {
    }
</code></pre>