Created
February 9, 2013 18:12
-
-
Save tucaz/4746389 to your computer and use it in GitHub Desktop.
Post com WebClient
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
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