[hunchentoot-devel] Hunchentoot and raw data output

Hi! How can I output data without a headers? I try to use external CSS, but hunchentoot add a header to CSS data.

Mm.. Must be (example from server with external CSS, i request CSS manualy): avatar@Nemesis ~ % telnet habrahabr.ru 80 | head Trying 62.213.122.2... Connected to habrahabr.ru. Escape character is '^]'. GET /css/main.css body, html { height: 100%; } body { font: .75em Verdana, sans-serif; /*12px is font-size for main content. Base font size*/ color:#000; background:#fff; ^CConnection closed by foreign host. And by hunchentoot: avatar@Nemesis ~ % telnet 10.0.1.12 8000 | head -n 20 Trying 10.0.1.12... Connected to 10.0.1.12. Escape character is '^]'. GET /index.css Connection closed by foreign host. HTTP/1.1 200 OK Content-Length: 310 Content-Type: text/html; charset=iso-8859-1 Date: Fri, 19 Sep 2008 07:58:23 GMT Server: Hunchentoot 0.15.7 Connection: Close #header { text-align: center; float: top; color: 0x0000FF; } #sidebar { text-align: center; float: left; I.e. all headers must be turned off

On Fri, 19 Sep 2008 11:00:16 +0300, public.avatar@gmail.com ([AvataR]) wrote:
Must be (example from server with external CSS, i request CSS manualy):
avatar@Nemesis ~ % telnet habrahabr.ru 80 | head Trying 62.213.122.2... Connected to habrahabr.ru. Escape character is '^]'. GET /css/main.css body, html { height: 100%; } body { font: .75em Verdana, sans-serif; /*12px is font-size for main content. Base font size*/ color:#000; background:#fff; ^CConnection closed by foreign host.
And by hunchentoot:
avatar@Nemesis ~ % telnet 10.0.1.12 8000 | head -n 20 Trying 10.0.1.12... Connected to 10.0.1.12. Escape character is '^]'. GET /index.css Connection closed by foreign host. HTTP/1.1 200 OK Content-Length: 310 Content-Type: text/html; charset=iso-8859-1 Date: Fri, 19 Sep 2008 07:58:23 GMT Server: Hunchentoot 0.15.7 Connection: Close
#header { text-align: center; float: top; color: 0x0000FF; }
#sidebar { text-align: center; float: left;
I.e. all headers must be turned off
Yes, in the case of HTTP/0.9 Hunchentoot should send no headers at all although it does. I've seen no pressing need so far to support HTTP/0.9, but if someone wants to send a patch (against the dev version, please), I'll be happy to integrate it. http://weitz.de/patches.html Why do you need HTTP/0.9 support?

On Fri, Sep 19, 2008 at 10:00, [AvataR] <public.avatar@gmail.com> wrote:
Mm.. Must be (example from server with external CSS, i request CSS manualy):
avatar@Nemesis ~ % telnet habrahabr.ru 80 | head Trying 62.213.122.2... Connected to habrahabr.ru. Escape character is '^]'. GET /css/main.css body, html { [...]
This server is not following the requirements of the HTTP protocol. Hunchentoot does the right thing. Why do you think that Hunchentoot is wrong? -Hans

Hm. I just got some unknown problem with including external css styles, and thought that this situation was a root of problem..

Just to clear up things, and after having talked to Edi: If you use a HTTP/1.0 request, as in GET /css/main.css HTTP/1.0 I am pretty confident that your reference server will send headers just like Hunchentoot does. Try setting the HUNCHENTOOT:*HEADER-STREAM* variable to *STANDARD-OUTPUT* to see the headers exchanged between the browser and the client. That may help you understand what's going wrong. You may also find the Live HTTP Headers (https://addons.mozilla.org/de/firefox/addon/3829) extension for Firefox helpful. It does the same thing as HUNCHENTOOT:*HEADER-STREAM* for Firefox and can be very helpful to understand the interactions between the Browser and the HTTP server. -Hans On Fri, Sep 19, 2008 at 10:25, [AvataR] <public.avatar@gmail.com> wrote:
Hm. I just got some unknown problem with including external css styles, and thought that this situation was a root of problem.. _______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
participants (3)
-
Edi Weitz
-
Hans Hübner
-
public.avatar@gmail.com