[ale] Anyone know about Safari?
Scott Castaline
skotchman at gmail.com
Tue Oct 2 16:42:23 EDT 2018
Hmm the difference between crank start engines and electric start engines
On 10/2/18 4:33 PM, Jim Kinney via Ale wrote:
> Safari needs longer to recognize "Oh, yeah. That's a new web page I
> need to render. Glad I got this blank line of time so I can start my
> render engine."
>
> On Tue, 2018-10-02 at 16:05 -0400, Charles Shapiro via Ale wrote:
>> Nemmine, solved it. You need two linefeeds after the "Content-Type:"
>> line:
>>
>> print("Content-Type: text/html\n\n")
>>
>> Then it works on all browsers. Ugh.
>>
>> -- CHS
>>
>>
>> On Tue, Oct 2, 2018 at 3:58 PM Charles Shapiro
>> <hooterpincher at gmail.com <mailto:hooterpincher at gmail.com>> wrote:
>>> I have a python 2.7 CGI script using the cgi module running inside
>>> lighttpd on a raspberry pi. It works fine in firefox, chrome, and
>>> even the browser that comes with Windows 10 (edge?). In Safari and
>>> konquerer, the CGI runs fine but the browsers won't render the HTML
>>> it prints. Instead, these two browsers print the output of my
>>> script as if it were text. If I run cgi.test(), they render the
>>> HTML correctly. If I purposely mung the python script ( I have cgitb
>>> enabled), the errors render correctly. The correctly rendered HTML
>>> and the HTML rendered as text both appear to lack headers as shown
>>> by view source in all browsers. If I put my cgi-bin output into a
>>> file named "foo.html", it renders correctly in all browsers ( I
>>> presume they are deducing that it is HTML by the file extension).
>>> If I put a "Content-Type: text/html" line into my cgi-bin output,
>>> then firefox and others offer to download the output of my script
>>> rather than displaying it ( it has no effect on the behavior of
>>> Safari).
>>>
>>> The web is silent on this matter. Has anyone here experienced this?
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org <mailto:Ale at ale.org>
>> https://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
> --
> James P. Kinney III
>
> Every time you stop a school, you will have to build a jail. What you
> gain at one end you lose at the other. It's like feeding a dog on his
> own tail. It won't fatten the dog.
> - Speech 11/23/1900 Mark Twain
>
> http://heretothereideas.blogspot.com/
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> https://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
--
Sent to you and NSA, CIA, FBI, SS, DHS and GOD only knows who the hell else...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.ale.org/pipermail/ale/attachments/20181002/dbd410de/attachment.html>
More information about the Ale
mailing list