Hi! From your code fragments I'm not sure how your data flow is supposed to work, but you need to call the "MHD_add_response_header" after MHD_create_response_from_buffer() and *before* MHD_queue_response().
The C++ fragment you linked to on Github can never do this. I hope this helps! Christian On 08/05/2015 07:30 PM, rahul bhola wrote: > hi, > in function *MHD_add_response_header *, i added a check for MHD_NO option > and it prints that the headers have been added successfully although i am > unable to view them using "curl -I" command and also in firefox. Is there > any specification that i am missing ? > > here is the code implementation > https://gist.github.com/22a493d83f5889066e11 > also the print and other functions are working just fine. > > requestHandle > handler(con,clientResponse); > handler.header("Content-Type","image/png"); > handler.print("hello > world"); > handler.status(10); > return handler.flush(); > > here is the code that i am calling from my main > > > cheers > Rahul >
signature.asc
Description: OpenPGP digital signature