Skip to content

Instantly share code, notes, and snippets.

@tucaz
Created February 9, 2013 18:12
Show Gist options
  • Save tucaz/4746389 to your computer and use it in GitHub Desktop.
Save tucaz/4746389 to your computer and use it in GitHub Desktop.
Post com WebClient
using (var client = new WebClient())
{
client.Credentials = new NetworkCredential("SeuUsuario", "SuaSenha");
var url = "UrlServico";
var parameters = "op=Consulta&agencia=J3&origem=1&destino=57&data=2013-02-15";
var response = client.UploadString(
url,
"POST",
parameters);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment