An error ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bo Yang

    #1

    An error ?

    Hi ,
    I am confronted with an odd question in the python cgi module !

    Below is my code :

    import cgitb ; cgitb.enable()
    import cgi

    print "Hello World !"

    How easy the script is , and the url is 202.113.239.51/vote/cgi/a.py
    but apache give me a 'Server internal error !'
    and the error log is :


    [Fri Jun 16 14:06:45 2006] [error] [client 10.10.110.17] malformed
    header from script. Bad header=Hello World!: a.py

    I wish somebody could help me , thanks in advance !

    Best Regard !


  • Rene Pijlman

    #2
    Re: An error ?

    Bo Yang:[color=blue]
    >[Fri Jun 16 14:06:45 2006] [error] [client 10.10.110.17] malformed
    >header from script. Bad header=Hello World!: a.py[/color]

    "The output of a CGI script should consist of two sections, separated by a
    blank line. The first section contains a number of headers, telling the
    client what kind of data is following."


    --
    René Pijlman

    Comment

    Working...