Hi guys
i have a basic request to a website and here is the website jason :
login_id: Ashkinx
csrf_token: eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJkZGJlMTFkOC0yY2RkLTQ2ZGEtYTBhNS05ZTRhZmZjYTNkNmUiLCJpc3MiOiJodHRwczovL2FjY291bnRzLm5pbnRlbmRvLmNvbSIsImlhdCI6MTcyMjg2NDA0NiwiZXhwIjoxNzIyODY3NjQ2LCJfZXh0Ijp7InAiOnt9LCJ0IjoiNTUzODIwMjU1IiwiYSI6ImFjY291bnRzX2xvZ2luX2lkX2VkaXRfZm9ybSJ9LCJ0eXAiOiJjc3JmX3Rva2VuIiwic3ViIjoiMzNlNDE5Yjg2ZGY3M2VmMSJ9.0WTIRb-TeoNX905yLkAD-MQBrUpXBsHlPnhbqEZD2to
butwhen i send a post in C# it won't successful
i monitor it with Fidler and here is my jason when it post :
{"login_id":"AshkinX","csrf_token":"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJkZGJlMTFkOC0yY2RkLTQ2ZGEtYTBhNS05ZTRhZmZjYTNkNmUiLCJpc3MiOiJodHRwczovL2FjY291bnRzLm5pbnRlbmRvLmNvbSIsImlhdCI6MTcyMjg2NDA0NiwiZXhwIjoxNzIyODY3NjQ2LCJfZXh0Ijp7InAiOnt9LCJ0IjoiNTUzODIwMjU1IiwiYSI6ImFjY291bnRzX2xvZ2luX2lkX2VkaXRfZm9ybSJ9LCJ0eXAiOiJjc3JmX3Rva2VuIiwic3ViIjoiMzNlNDE5Yjg2ZGY3M2VmMSJ9.0WTIRb-TeoNX905yLkAD-MQBrUpXBsHlPnhbqEZD2to"}
but the website jason when i try manually is this :
login_id=AshkinX&csrf_token=eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJkZGJlMTFkOC0yY2RkLTQ2ZGEtYTBhNS05ZTRhZmZjYTNkNmUiLCJpc3MiOiJodHRwczovL2FjY291bnRzLm5pbnRlbmRvLmNvbSIsImlhdCI6MTcyMjg2NDA0NiwiZXhwIjoxNzIyODY3NjQ2LCJfZXh0Ijp7InAiOnt9LCJ0IjoiNTUzODIwMjU1IiwiYSI6ImFjY291bnRzX2xvZ2luX2lkX2VkaXRfZm9ybSJ9LCJ0eXAiOiJjc3JmX3Rva2VuIiwic3ViIjoiMzNlNDE5Yjg2ZGY3M2VmMSJ9.0WTIRb-TeoNX905yLkAD-MQBrUpXBsHlPnhbqEZD2to
any help ?
What I have tried:
var newPost = new Post()
{
login_id = "AshkinX",
csrf_token = "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJkZGJlMTFkOC0yY2RkLTQ2ZGEtYTBhNS05ZTRhZmZjYTNkNmUiLCJpc3MiOiJodHRwczovL2FjY291bnRzLm5pbnRlbmRvLmNvbSIsImlhdCI6MTcyMjg2NDA0NiwiZXhwIjoxNzIyODY3NjQ2LCJfZXh0Ijp7InAiOnt9LCJ0IjoiNTUzODIwMjU1IiwiYSI6ImFjY291bnRzX2xvZ2luX2lkX2VkaXRfZm9ybSJ9LCJ0eXAiOiJjc3JmX3Rva2VuIiwic3ViIjoiMzNlNDE5Yjg2ZGY3M2VmMSJ9.0WTIRb-TeoNX905yLkAD-MQBrUpXBsHlPnhbqEZD2to",
};
var NewPostJson = JsonConvert.SerializeObject(newPost);
var content = new System.Net.Http.StringContent(NewPostJson, Encoding.UTF8, "application/json");
var result = client.PostAsync(url, content).Result.Content.ReadAsStringAsync().Result;