in reply to Working for IE, not Netscape

Is the mime-type set correctly for text/html? IE tends to ignore this, while Netscape doesn't. I'll try to telnet in and see if that's the case.

Yep, here's the server headers:

GET /cgi-bin/cgiwrap/pcworldlinks/frontpage.pl HTTP/1.0 HTTP/1.1 200 OK Date: Thu, 15 Jun 2000 02:36:16 GMT Server: Apache/1.3.9 (Unix) Client file=./DIST/.dat<br>Content-Type: text/html Connection: close Content-Type: text/plain
That last one should be text/html.

Replies are listed 'Best First'.
RE: Re: Working for IE
by Anonymous Monk on Jun 15, 2000 at 07:10 UTC
    Well, i knew someone would probably figure out the problem. Thank you. Now, one other thing. How do I correct this as I'm leasing the web space, or am I missing something. (i.e. this is a script problem) Thanks again for your help and darn quick responses. CA
      You need to return the content-type in the HTTP header somehow, whether through CGI.pm's header() method, or by printing it:
      print "Content-Type: text/html\n\n";
      That's the canonical way you'll see it written. This has to be the first thing out of your script, though, as anything after the two newlines (technically something like \012\015\012\015) will be displayed in the browser.
        That's what I thought you might refer to, sorry I'm new to posting in here. This may not come thru great but here is the beginning of my frontpage.pl script; #!/usr/local/bin/perl BEGIN{unshift(@INC,"/usr/local/www/htdocs/pcworldlinks/cgi-bin/")}; use Cart; $path="/usr/local/www/htdocs/pcworldlinks/cgi-bin/DIST/"; %ele=Cart::cgiparse; if(!($ele{dist})){$dist=$ENV{'QUERY_STRING'};}else{$dist=$ele{dist};} %var=Cart::get_client($dist,$path); print "Content-Type: text/html\n\n"; print <<"EOF"; then my html code and ends with EOF } Does this look right? Thanks for the help.