CGI error

Developers
wanlorn
2007-01-09
2012-10-11
  • wanlorn

    wanlorn - 2007-01-09

    I have a awstats server running on a win 2003 with IIS6.

    I've got a lot of site that my awstats is analyzing.

    Recently one of those, without any change, pop me a CGI error that it could not find something about HTTP

    Do anyone know an issue ?

    Thanks for helping

    Erreur CGI
    L'application CGI spécifiée n'a pas renvoyé le jeu complet d'en-têtes HTTP.

     
    • Anonymous - 2007-09-11

      That's "the CGI application misbehaved by not returning a complete set of HTTP headers" because AWStats does not return the HTTP status line.

      Edit awstats.pl and change

          if ($BuildReportFormat eq 'xhtml' || $BuildReportFormat eq 'xml') { print ($ENV{'HTTP_USER_AGENT'}=~/MSIE|Googlebot/i?"Content-type: text/html; charset=$PageCode\n":"Content-type: text/xml; charset=$PageCode\n"); }
          else { print "Content-type: text/html; charset=$PageCode\n"; }
      

      to

          if ($BuildReportFormat eq 'xhtml' || $BuildReportFormat eq 'xml') { print ($ENV{'HTTP_USER_AGENT'}=~/MSIE|Googlebot/i?"HTTP/1.1 200 OK\nContent-type: text/html; charset=$PageCode\n":"HTTP/1.1 200 OK\nContent-type: text/xml; charset=$PageCode\n"); }
          else { print "HTTP/1.1 200 OK\nContent-type: text/html; charset=$PageCode\n"; }
      

      Not sure why this has been missed in so many releases.

       

Log in to post a comment.