How to submit a multipart/form-data HTTP POST request from C#

后端 未结 5 1480
予麋鹿
予麋鹿 2020-12-15 20:10

What is the easiest way to submit an HTTP POST request with a multipart/form-data content type from C#? There has to be a better way than building my own request.

T

5条回答
  •  忘掉有多难
    2020-12-15 20:42

    I've had success with the code posted at aspnetupload.com. I ended up making my own version of their UploadHelper library which is compatible with the Compact Framework. Works well, seems to do exactly what you require.

提交回复
热议问题