Jump to content

Marina Novello Bortolucci

Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Comum

About Marina Novello Bortolucci

  1. Marina Novello Bortolucci

    converter código em C#

    Será que alguém pode me ajudar, tenho o código abaixo, gostaria de converte-lo em c# HttpClient client = HttpClientBuilder.create().build(); HttpPost post = new HttpPost(URL); FileBody fileBody = new FileBody(path.toFile(), ContentType.DEFAULT_BINARY); StringBody stringBody1 = new StringBody("15425039000128", ContentType.MULTIPART_FORM_DATA); StringBody stringBody2 = new StringBody("154250", ContentType.MULTIPART_FORM_DATA); StringBody stringBody3 = new StringBody("7513", ContentType.MULTIPART_FORM_DATA); // MultipartEntityBuilder builder = MultipartEntityBuilder.create(); builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); builder.addPart("login", stringBody1); builder.addPart("senha", stringBody2); builder.addPart("cidade", stringBody3); builder.addPart("f1", fileBody); HttpEntity entity = builder.build(); // post.setEntity(entity); HttpResponse response = client.execute(post);
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.