Created
April 1, 2014 22:57
-
-
Save iamdionysus/9924804 to your computer and use it in GitHub Desktop.
two points when using System.Net.WebClient
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
using (var web = new WebClient()) | |
{ | |
web.Encoding = System.Text.Encoding.UTF8; | |
web.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment