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
  • 16,256
  • 15
  • 86
  • 137
tobi
  • 1,924
  • 2
  • 20
  • 25

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
  • 1,023,142
  • 271
  • 3,287
  • 2,928