in reply to Re: Unwanted line (CGI question)
in thread Unwanted line (CGI question)

Normally, for web pages serving html, you want/need that line. Why do you think it's weird? What problems is it causing you?

Content-Type: text/html; charset=ISO-8859-1 is http header. IMHO, that means it's invisible to client. That's why I think it's weird.


I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Replies are listed 'Best First'.
Re^3: Unwanted line (CGI question)
by derby (Abbot) on Oct 21, 2008 at 12:22 UTC

    Right ... depending on the client. Are you seeing that line in the browser?

    -derby
      Sure, both IE 6.0 and Firefox 3.0

      I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

        Do you see it with this small example script:

        use CGI qw/:standard/; print header, start_html('A Simple Example'), end_html;
        if so. Then I would say it's a configuration issue with your server (it could be set up to send headers also). What happens when you make the request outside of the browser. Sorry, I don't know how to do that in the windows world but in in *nix, you would use a tool like curl or lwp-request (be sure to invoke the program with the right option to see the headers).

        -derby