Matthias Ulrich Neeracher,neeri@iis.ee.ethz.ch,Internet writes: > > When I started coding for our > >WebSTAR server, I followed every instruction book that said to start off with > >"Content-type: text/html\r\n\r\n" and continue on with HTML. > > Get a refund for your instruction books and use \015\012 instead. What you're > generating is \012\015, the one EOL (mis-) convention not recognized by the > glue. > > > HTTP/1.0 302 Redirect\r > > Location: http://www.helix.net/~joshua\r > > \r > >which, instead of redirecting the browser, just displays a blank web page! A > >big, gray nothing. > > Anybody know anything about this? > > That's another design decision in the glue: It assumes that someone who's going > to write such an explicit design header is going to have it terminated > correctly, so you'll either have to use \015\012 or the lazy form: > > Location: xxxxxx\n\n > > In the latter case, the glue figures out that you probably want a 301 status. > > To summarize: the glue figures out to handle a wide variety of response formats > but obviously not quite everything imaginable. > > Matthias > Wow. That was simple. Thanks, Matthias. I guess, then, that the only way to have cross-platform compatibility for these types of scripts is to use "\015\012" explicitly rather than "\r\n". Oh, well. It's a small price to pay for something that works! -josh ----------------------------------------------------------------- Open Learning Agency 4355 Mathissi Place, Burnaby, B.C. Canada, V5G 4S8 (604) 431-3000 ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch