Skip to content

Instantly share code, notes, and snippets.

@PhonicUK
Created January 15, 2017 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhonicUK/edf6281cce9c3e4568f39eef0ad2e25e to your computer and use it in GitHub Desktop.
Save PhonicUK/edf6281cce9c3e4568f39eef0ad2e25e to your computer and use it in GitHub Desktop.
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