Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96959

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: Problem configuring apache to run python cgi on Ubuntu 14.04
Date 2015-09-21 19:41 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <mtpmgq$sfa$1@reader1.panix.com> (permalink)
References <44e870a7-9567-40ba-8a65-d6b52a8c5d25@googlegroups.com>

Show all headers | View raw


In <44e870a7-9567-40ba-8a65-d6b52a8c5d25@googlegroups.com> tropical.dude.net@gmail.com writes:

> print("Content-Type: text/html;charset=utf-8")
> print("Hello World!")

As I recall, you must have a blank line between the headers and the
content.

But that may or may not be your problem, as you haven't told us exactly
what is going wrong.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Problem configuring apache to run python cgi on Ubuntu 14.04 tropical.dude.net@gmail.com - 2015-09-21 11:41 -0700
  Re: Problem configuring apache to run python cgi on Ubuntu 14.04 sohcahtoa82@gmail.com - 2015-09-21 12:19 -0700
    Re: Problem configuring apache to run python cgi on Ubuntu 14.04 tropical.dude.net@gmail.com - 2015-09-21 12:39 -0700
  Re: Problem configuring apache to run python cgi on Ubuntu 14.04 "Albert Visser" <albert.visser@gmail.com> - 2015-09-21 21:28 +0200
    Re: Problem configuring apache to run python cgi on Ubuntu 14.04 tropical.dude.net@gmail.com - 2015-09-21 12:44 -0700
  Re: Problem configuring apache to run python cgi on Ubuntu 14.04 John Gordon <gordon@panix.com> - 2015-09-21 19:41 +0000
    Re: Problem configuring apache to run python cgi on Ubuntu 14.04 tropical.dude.net@gmail.com - 2015-09-21 12:47 -0700
      Re: Problem configuring apache to run python cgi on Ubuntu 14.04 tropical.dude.net@gmail.com - 2015-09-21 12:51 -0700
        Re: Problem configuring apache to run python cgi on Ubuntu 14.04 alister <alister.nospam.ware@ntlworld.com> - 2015-09-21 20:29 +0000
          Re: Problem configuring apache to run python cgi on Ubuntu 14.04 tropical.dude.net@gmail.com - 2015-09-21 14:36 -0700
            Re: Problem configuring apache to run python cgi on Ubuntu 14.04 Chris Angelico <rosuav@gmail.com> - 2015-09-22 08:36 +1000

csiph-web