I am looking for a way to create a HttpServer in C# that supports the chunked Transfer-Encoding for multipart-form posts. Reason is that I need to transfer large files (2-10GB) and the client application has to use the chunked transfer-encoding - else it runs out of memory when loading the file into memory. I have looked though the web and found quite a lot of examples that are using the System.Net.HttpListener class in .Net but I was not able to get that one to work with receiving data from a client that uses the chunked Transfer-Encoding.
Does anyone have an example of how to do that?
Any hint is greatly appreciated.
after trying more I wound the solution: You only need to set
That made it work for me.