[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] <meta http-equiv="refresh" content="0; url=http://go

From: Perry Couprie
Subject: Re: [libmicrohttpd] <meta http-equiv="refresh" content="0; url="> not working
Date: Tue, 18 Feb 2014 17:14:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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 :-)


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


On 02/18/2014 12:12 PM, Perry Couprie wrote:

When i create test.html under apache with the following content.

<meta http-equiv="refresh" content="0; url="" class="moz-txt-link-freetext" href="">">

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).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]