Pardon my ignorance,
I want to respond to a successful DELETE with only the status MHD_HTTP_NO_CONTENT and no content. Is the following fragment correct?

response = MHD_create_response_from_buffer(0, "", MHD_RESPMEM_PERSISTENT);
MHD_queue_response(connection, MHD_HTTP_NO_CONTENT, response);
MHD_destroy_response(response);

That is, there is no way to send a response without creating an empty message. Is it true? Well, I'm not sure if my concern matches with the HTTP protocol...

Thanks for helping!
                        mario

--
Ing. Mario Valle
Swiss National Supercomputing Centre (CSCS)
v. Trevano 131, 6900 Lugano, Switzerland
Tel: +41 (91) 610.82.60

Reply via email to