Shekher Khare

Shekher Khare

  • NA
  • 21
  • 810

Asynchronous Post request through WebClient.UploadStringTask

Sep 20 2017 5:06 PM
var webClient = new WebClient();
 
 
webClient.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
 
var result = await webClient.UploadStringTaskAsync(new Uri(url),"[email protected]&udid=csdcsv-e434-dsasd-333&password=test&platformId=40&applicationId=1");
 
return result;
 
*****************
Above is my code when I'm running it on a console application c# as soon request is made
the application stops. 
 

Answers (1)