I have the below code that I am 100% sure about the URL and I am also verifying the PackageID when I Breakpoint.
But the problem is the result is always zero rows although when I use the same URL in Postman Ia m getting the correct output
What could be the reason please?
using (httpClient = new HttpClient())
httpClient.BaseAddress = new Uri("https://www.jassimalrahma.com/package.php");
var content = new FormUrlEncodedContent(new
new KeyValuePair<string, string>("package", PackageID),
var response = await httpClient.PostAsync("https://www.jassimalrahma.com/package.php", content);
var result = await response.Content.ReadAsStringAsync();
List<PackageDetailsData> data = JsonSerializer.Deserialize<List<PackageDetailsData>>(result);
LabelPackageName.Text = data.package_name;
Here is my Postman: