Re: [libmicrohttpd] Terminate session with response

2023-08-31 Thread Christian Grothoff
Dea Avner, I assume you are talking about a file *upload*, from the client to your HTTP server. In this case, the HTTP protocol only allows you to queue a response either before the upload has started (after receiving the header and before the server responds with 100 continue) or after the u

[libmicrohttpd] Terminate session with response

2023-08-31 Thread Avner Flesch
Hi, I am implementing file download with libmicrohttpd. Now I am wondering - in case I have a failure during the download, is there an option to terminate the session with a response, or should I wait to get all the file parts, and just then send the response with code "400"? When I am returning "