I am getting a correct response when using Postman but when I use the generated restsharp code in Postman i get the following as a response "Not available at this moment".
The generated Code is the following:
var client = new RestClient("https://allevents.in/api/index.php/events/web/q");
var request = new RestRequest(Method.POST);
request.AddHeader("Postman-Token", "e35b163d-19b5-bb1d-ddcc-b547411efeac");
request.AddHeader("Referer", "allevents.in");
request.AddHeader("Cache-Control", "no-cache");
request.AddHeader("Accept", "application/json");
request.AddHeader("scheme", "https");
request.AddHeader("path", "/api/index.php/events/web/q");
request.AddHeader("method", "POST");
request.AddHeader("autority", "allevents.in");
request.AddParameter("undefined", "{\"venue\":\"0\",\"ids\":\"0\",\"type\":\"json\",\"city\":\"luxembourg\",\"edate\":\"\",\"page\":\"0\",\"keywords\":\"0\",\"sdate\":\"\",\"category\":\"parties\",\"city_display\":\"luxembourg\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
I have tried clearing the default parameters but had no success.
Thanks in advance
Solved
There were two missing cookies that were not shown in the postman interface.I have found them in the fiddler request and added them to the cookie container.