Skip to content

Instantly share code, notes, and snippets.

@KerryRitter
Created April 15, 2015 18:13
Show Gist options
  • Save KerryRitter/027d5d1244fbf74bddbc to your computer and use it in GitHub Desktop.
Save KerryRitter/027d5d1244fbf74bddbc to your computer and use it in GitHub Desktop.
SilverlightWebClient Example
var requestParameters = new Dictionary
{
{"param1", "value1"},
{"param2", "value2"},
};
var webClient = new SilverlightWebClient();
string response = webClient.UploadValues(new Uri("[uri to post to]"), requestParameters);
var webClient2 = new SilverlightWebClient();
client.Headers["MyHeader"] = "Value";
var downloadedKeyValue = webClient2.DownloadData(keyDeliveryUrl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment