[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] How to return http status only
From: |
Mario Valle |
Subject: |
[libmicrohttpd] How to return http status only |
Date: |
Thu, 3 Dec 2015 05:26:06 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
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
- [libmicrohttpd] How to return http status only,
Mario Valle <=