开发者

HttpPostRequest Text+File in VB.NET

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜