Created
April 15, 2015 18:13
-
-
Save KerryRitter/027d5d1244fbf74bddbc to your computer and use it in GitHub Desktop.
SilverlightWebClient Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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