httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Richards <p...@originat.demon.co.uk>
Subject Re: Window-target: header
Date Sun, 07 Jan 1996 17:37:02 GMT
In reply to Alexei Kosut who said
> 
> On Fri, 5 Jan 1996, Paul Richards wrote:
> 
> > --------------------------------------------------------------------
> > #!/bin/sh
> > 
> > echo -e "Window-target: MAIN \n"
> > echo -e "Location: ../index.html\n\n"
> > --------------------------------------------------------------------
> 
> Maybe I'm missing something, but last time I looked at sh's echo command, 
> it added a linefeed to the end of its output, without being told. Take 
> out one \n from each line, and it might behave more like you might be 
> expecting. In fact, then the two will act the same.
> 

Yep you're right, an extra linefeed was getting sent and so Location:
was appearing in the body instead of the headers.

Another question, should headers be preserved across a Location: redirect?

-- 
  Paul Richards, Netcraft Ltd.
  Internet: paul@netcraft.co.uk, http://www.netcraft.co.uk
  Phone: 0370 462071 (Mobile), +44 1225 447500 (work)

Mime
View raw message