On 15 Jun 2001, at 10:25, Curtis Poe wrote:
> > To do it manually, use the following and set $mime_type to whatever value
> > you want (see W3C website for complete list):
> >  print "Content-type: $mime_type\n";
> 
> With all due respect, your print statement is why I recommend to people
> that they should not do this manually.  There should be two newlines at the
> end of that (actually a \r\n or \012\015, but usually the Web server
> catches the error and corrects for it (something I have a serious beef
> with, but that's just me (oh, and I use too many parentheses))).

I'm glad to see someone paying attention. After I sent that email, I 
realized that the snippet of code I sent was indeed in error. The two 
newlines were appended further down in my script (after a Content-
Disposition header that I was sending in order to begin a download). 
Thanks for correcting it.

William

Reply via email to