Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27239
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <dan@tombstonezero.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'subject:: [': 0.03; 'reason,': 0.07; 'subject:Why': 0.09; 'cc:addr:python-list': 0.10; 'subject:not': 0.11; 'thread': 0.11; 'as-is': 0.16; 'gilles': 0.16; 'wrote:': 0.17; 'subject:] ': 0.19; 'variable': 0.20; 'displayed': 0.22; 'tells': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'plain': 0.27; 'displays': 0.27; 'received:24': 0.27; 'cgi': 0.29; 'dan': 0.29; 'print': 0.32; '+0200,': 0.33; 'another': 0.33; 'text.': 0.35; 'subject:?': 0.35; 'but': 0.36; 'being': 0.37; 'why': 0.37; 'some': 0.38; 'instead': 0.39; 'google': 0.39; 'skip:" 10': 0.40; 'content-disposition:inline': 0.60; 'respect': 0.63; 'due': 0.66; '8bit%:100': 0.70; 'disturb': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed; d=tombstonezero.net; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:content-transfer-encoding:in-reply-to; s=key1; bh=wjRxT8gp4FanWAPxmkuf6rNdV74=; b=Yfq2ZEf0QYtmBUOamhSxF//6lGYJ1BP5Vwj3p4O6Z346YNP2f43Z3pPHGibOf08Mp7L7oYT8Ccs/n7b/nNiu9w== |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=tombstonezero.net; q=dns; s=key1; b=UxcENrJEoiel68KyD28sFCxyhB2tPwoq184+AlaIA8G6FdEzoU3HRzw7TL+S9+MV9H3lVMiUd2ctFXzRXjHYmQ== |
| X-Virus-Scanned | Debian amavisd-new at 5013.mail.vm.your-site.com |
| Date | Fri, 17 Aug 2012 06:41:52 -0700 |
| From | Dan Sommers <dan@tombstonezero.net> |
| To | Gilles <nospam@nospam.com> |
| Subject | Re: [CGI] Why is HTML not rendered? |
| References | <hihs289062ottjtqpgpkbl3pb6b1irj9kq@4ax.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| In-Reply-To | <hihs289062ottjtqpgpkbl3pb6b1irj9kq@4ax.com> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3414.1345210924.4697.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1345210924 news.xs4all.nl 6841 [2001:888:2000:d::a6]:51226 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:27239 |
Show key headers only | View raw
On 2012-08-17 at 15:27:59 +0200,
Regarding "[CGI] Why is HTML not rendered?,"
Gilles <nospam@nospam.com> wrote:
> For some reason, this CGI script that I found on Google displays the
> contents of the variable but the HTML surrounding it is displayed
> as-is by the browser instead of being rendered:
... [with all due respect and apologies to another thread on this list!]
> print "Content-Type: text/plain;charset=utf-8"
That line tells the browser that the response is plain text.
Do this instead to have the browser render the HTML:
print "Content-Type: text/html;charset=utf-8"
HTH,
Dan
--
Μὴ μοῦ τοὺς κύκλους τάραττε -- Αρχιμηδησ
Do not disturb my circles. -- Archimedes
Dan Sommers, http://www.tombstonezero.net/dan
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[CGI] Why is HTML not rendered? Gilles <nospam@nospam.com> - 2012-08-17 15:27 +0200
Re: [CGI] Why is HTML not rendered? Dan Sommers <dan@tombstonezero.net> - 2012-08-17 06:41 -0700
Re: [CGI] Why is HTML not rendered? Robert Kern <robert.kern@gmail.com> - 2012-08-17 14:44 +0100
Re: [CGI] Why is HTML not rendered? Gilles <nospam@nospam.com> - 2012-08-17 18:19 +0200
Re: [CGI] Why is HTML not rendered? Alexander Blinne <news@blinne.net> - 2012-08-17 15:40 +0200
csiph-web