The example on that page demonstrates sending data in body via Post requests. That can easily be adapted to send the contents of a file in the Post request.
However, browsers are able to send multiple files together with form data in a single post request that servers can read independently of the platform. The browsers obviously use some demarker between different files, and between the files & form data. I believe that is a part of the HTTP standard, as servers can parse the data on any platform.
So, how do I do it in .NET? I could not find any other class explicitly for HTTP requests, and this class does not provide properties or methods to send multiple files? |