how to post string to URL in UWP
问题 i want to post a string to an URL so that i can upload a file. I did it in WPF project and i want to do it in UWP project. this is my method in WPF: OpenFileDialog ofd = new OpenFileDialog(); string url = "http://localhost/visualStudioUpload/upload1.php "; WebClient Client = new WebClient(); WebRequest request = WebRequest.Create(url); // Set the Method property of the request to POST. request.Method = "POST"; // Set the ContentType property of the WebRequest. request.ContentType =