Tim,
Thanks for the information and I'll work with you suggestions. Also,
I will let you know what I find.
Thanks again,
Christopher
Tim Chase wrote:
> > I'm working with a Python CGI script that I am trying to use with an
> > external CSS (Cascading Style Sheet) and it is not reading it from
> I'm working with a Python CGI script that I am trying to use with an
> external CSS (Cascading Style Sheet) and it is not reading it from the
> web server. The script runs fine minus the CSS formatting. Does
> anyone know if this will work within a Python CGI? It seems that line
> 18 is not be
Your python script is not getting executed.
I guess there is something wrong with the server configuration.
#-Original Message-
#From: Philippe C. Martin [mailto:[EMAIL PROTECTED]
#Sent: Tuesday, October 25, 2005 1:27 AM
#To: python-list@python.org
#Subject: python cgi script not unders
It is, thanks.
Philippe
Peter Hansen wrote:
> Philippe C. Martin wrote:
>> The following code outputs the actual HTML text to the browser, not the
>> interpreted text.
>>
>> html_ok = """
>> Content-Type: text/html\n
>> > "http://www.w3.org/TR/html4/loose.dtd";>\n
>
> HTTP header lines must
Many thanks !!
Regards,
Philippe
Mitja Trampus wrote:
> Philippe C. Martin wrote:
>> Hi,
>>
>> The following code outputs the actual HTML text to the browser, not the
>> interpreted text.
>>
>> Any idea ?
>>
>> html_ok = """
>> Content-Type: text/html\n
> >
> > ...
> > """
>
> Avoid t
Philippe C. Martin wrote:
> The following code outputs the actual HTML text to the browser, not the
> interpreted text.
>
> html_ok = """
> Content-Type: text/html\n
> "http://www.w3.org/TR/html4/loose.dtd";>\n
HTTP header lines must end with \r\n, not just with \n. Not sure this
is the soluti
Philippe C. Martin wrote:
> Hi,
>
> The following code outputs the actual HTML text to the browser, not the
> interpreted text.
>
> Any idea ?
>
> html_ok = """
> Content-Type: text/html\n
>
> ...
> """
Avoid the starting newline (before content-type).
Add at least TWO newlines after conten
the title should say "python cgi script html output not understood as html"
Philippe C. Martin wrote:
> Hi,
>
> The following code outputs the actual HTML text to the browser, not the
> interpreted text.
>
> Any idea ?
>
> Regards,
>
> Philippe
> import cgi
> import logging
> import auth #th
I guess your python script isn't getting executed.
a. I guess you might have to tweak the server if the script is not
getting executed.
b. Maybe your script is getting executed but you are not setting the
"Content-type" parameter which is essential for browser that it is an
html page.
Note :- Se
Efrat,
I am afraid a CGI script is never *executed* by the browser. Instead, it sends
the URL to a server, expects the server to execute the script, and display the
server's response. If you just put a file name then (it seems, I never even
tried that) Firefox uses the local file store as a 'serve
Efrat Regev wrote:
> Hello,
>
> I'm a data-structures course TA trying to write a python CGI script
> for automatically compiling and testing students' projects.
> Unfortunately, I've run into some questions while writing this, which I
> couldn't solve with the various (and helpful) p
11 matches
Mail list logo