Created
January 15, 2017 17:20
-
-
Save PhonicUK/edf6281cce9c3e4568f39eef0ad2e25e to your computer and use it in GitHub Desktop.
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 wc = new WebClient()) | |
{ | |
var user = Console.ReadLine(); | |
var message = Console.ReadLine(); | |
var data = new NameValueCollection{ | |
{"username", user}, | |
{"content", message} | |
}; | |
wc.UploadValues("http://someurl", data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment