So I manage to create a post requests but I have no idea on how to know if it worked? How can I get the html code of the website after the requests?
here is my code:
var client = new WebClient();
var method = "POST"; // If your endpoint expects a GET then do it.
var parameters = new NameValueCollection();
parameters.Add("utf8", "✓");
parameters.Add("style", data);
parameters.Add("size", size);
parameters.Add("commit", "add to basket");
var response_data = client.UploadValues(url_add_to_cart, method, parameters);
Moreover, after this post requests I need to do another post requests with the same session I used before. Is it possible by doing everything in the same webclient??
Thank you very much for your answers! If you need more info I'll add it