开发者

HttpPostRequest Text+File in VB.NET

开发者 https://www.devze.com 2022-12-10 20:08 出处:网络
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\")

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开发者_Go百科, how to?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消