Last active
August 29, 2015 14:15
-
-
Save alikrc/4581c21491ee7ff4792b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
string URI = "http://www.site.com"; | |
string myParameters = "param1=value1¶m2=value2¶m3=value3"; | |
using (WebClient wc = new WebClient()) | |
{ | |
wc.Encoding = Encoding.UTF8; | |
wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded"; | |
string htmlResult = wc.UploadString(URI, myParameters); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment