Hi Christian,
I did not add the content type, after adding the following line, it
works :-)
// Here we try to send the response we created.
*+ MHD_add_response_header(response, "content-type", "text/html;
charset=utf-8");*
ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
MHD_destroy_response (response);
Thanks for the help :-)
Perry
On 02/18/2014 12:31 PM, Christian Grothoff wrote:
Did you add a header to set the content type to html? Otherwise the
browser may interpret the response as text, and ignore the HTML directive.
My 2 cents
Christian
On 02/18/2014 12:12 PM, Perry Couprie wrote:
Hi,
When i create test.html under apache with the following content.
<meta http-equiv="refresh" content="0; url=http://google.com/">
Under chrome and firefox this redirect works, but when i try to send it
using libmicrohttp.
Chrome wil just display the content and wil nog be redirected to google.
Ik have looked at the documentation and googled for an answer.
Why does this not work and how do i get it to work ?
Perry (Greeting from Amsterdam, Netherlands).