0

HttpPostRequest with Files only in VB2008 is easy:

    Using wc As New System.Net.WebClient()
        wc.UploadFile("http://server.de/exemple.php", "c:\test.png")
    End Using

But I want POST Text + Files in one POST (username, password, file). But, how to?

MPelletier
  • 15,673
  • 14
  • 84
  • 131
tobi
  • 1,734
  • 1
  • 17
  • 23

1 Answers1

0

This is not possible with WebClient. You will need to use HttpWebRequest and manually format the request according to RFC 1867.

Community
  • 1
  • 1
Darin Dimitrov
  • 994,864
  • 265
  • 3,241
  • 2,902