I am on .NET 3.5 and using
client.UploadDataAsync(uri,"POST", array);
for uploads, and
client.DownloadStringAsync(uri);
for downloads.
Every time I upload, or download it takes forever! When I access the information via browser, it takes milliseconds.
When I do it through code, it takes no less than 10 seconds.
I have tried
WebRequest.DefaultWebProxy = null;
But I see no significant change.
What else can I do to improve speeds? -- Or is there a better approach with async functionality?
Also, because it is still working in the background, what would be a way to cancel all tasks currently being done (downloads, uploads) when my program terminates? FYI I just want a catch-all method that terminates all proccesses.
Note: I cannot upgrade from 3.5