I have to download some data from external source but I have to submit which data I want to retrieve, I’m using special url (on website) routing and I don’t allow special characters in URL so I guess I have to use POST or GET method to submit data. How to achieve this with Download String Async?
WebClient c = new WebClient();
c.DownloadStringCompleted += new DownloadStringCompletedEventHandler(DownloadStringCompleted);
c.DownloadStringAsync(new Uri(uristring));
As you can see I’m currently downloading default data only.
The simplest approach is probably to use
UploadStringAsyncorUploadDataAsync, having attached the appropriate event handlers.