Initial Page - Garbage before file contents

Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Initial Page - Garbage before file contents

Craig Johnson
Hi All,

I'm running a Cherrypy server which serves an initial static page "Default.html".  This is on a Windows server.

The page is being served with a few extraneous characters after the headers and before the actual file contents.  See below.
Any ideas where these are coming from?

Craig

HTTP/1.1 200 OK
Content-Type: text/html;charset=utf-8
Server: CherryPy/18.5.0
Date: Thu, 19 Mar 2020 12:22:22 GMT
Content-Length: 3593
Set-Cookie: session_id=a6f56e0233c60159ec61f400a03b91d9e1011396; expires=Thu, 19 Mar 2020 13:22:22 GMT; Max-Age=3600; Path=/

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .Headers {
            font-size: x-large

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/cherrypy-users/b4a4ee09-4c39-47b4-96b8-8741ed7791a0%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Initial Page - Garbage before file contents

Michiel Overtoom
Hi Craig,

> I'm running a Cherrypy server which serves an initial static page "Default.html". This is on a Windows server. The page is being served with a few extraneous characters after the headers and before the actual file contents. Any ideas where these are coming from?

Apparently your Default.html file contains a Byte Order Mark.

https://stackoverflow.com/questions/3255993/how-do-i-remove-%C3%AF-from-the-beginning-of-a-file

Greetings,

--
"You can't actually make computers run faster, you can only make them do less." - RiderOfGiraffes

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/cherrypy-users/CC9056FD-2A63-4840-81E7-C32C489587CA%40xs4all.nl.
Reply | Threaded
Open this post in threaded view
|

Re: Initial Page - Garbage before file contents

Craig Johnson
Wow - so simple when you ask the right people.  Thank you for this reply, it was 100% correct.

Craig

On Thursday, 19 March 2020 16:19:32 UTC+2, Michiel Overtoom wrote:
Hi Craig,

> I'm running a Cherrypy server which serves an initial static page "Default.html". This is on a Windows server. The page is being served with a few extraneous characters after the headers and before the actual file contents. Any ideas where these are coming from?

Apparently your Default.html file contains a Byte Order Mark.

<a href="https://stackoverflow.com/questions/3255993/how-do-i-remove-%C3%AF-from-the-beginning-of-a-file" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F3255993%2Fhow-do-i-remove-%25C3%25AF-from-the-beginning-of-a-file\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHBRntuP1qgcoTs9_8e4jAVCCQkJA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F3255993%2Fhow-do-i-remove-%25C3%25AF-from-the-beginning-of-a-file\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHBRntuP1qgcoTs9_8e4jAVCCQkJA&#39;;return true;">https://stackoverflow.com/questions/3255993/how-do-i-remove-%C3%AF-from-the-beginning-of-a-file

Greetings,

--
"You can't actually make computers run faster, you can only make them do less." - RiderOfGiraffes

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/cherrypy-users/404a1466-15ee-4130-bab8-6a3396f049db%40googlegroups.com.