How to post a file via HTTP post in vb.net

前端 未结 4 519
慢半拍i
慢半拍i 2020-12-05 03:47

Having a problem with sending a file via HTTP post in vb.net. I am trying to mimic the following HTML so the vb.net does the same thing.

4条回答
  •  甜味超标
    2020-12-05 04:20

    I think what you are asking for is the ability to post a file to a web server cgi script from a VB.Net Winforms App.

    If this is so this should work for you

    Using wc As New System.Net.WebClient()
        wc.UploadFile("http://yourserver/cgi-bin/upload.cgi", "c:\test.bin")
    End Using
    

提交回复
热议问题