title: The specified CGI application misbehaved... when executing hgweb.cgi for Mercurial
body: <ul>
  <li>I have IIS 6</li>
  <li>I installed Mercurial in c:/program files/mercurial</li>
  <li>I installed Python 2.6 in c:/program files/python</li>
  <li>I added extension handlings etc for my websites under tab 'home directory'=>'configuration
  <ul>
  <li>"C:\program files\Mercurial\python\python.exe" -u "%s" "%s"</li>
  <li>extenstion = .cgi</li>
  </ul></li>
  <li>I allowed python.exe in web service extensions
  <ul>
  <li>"C:\Program Files\Mercurial\Python\python.exe" -u "%s" "%s"</li>
  </ul></li>
  <li>I allowed all unknown cgi, although it is not recommended for security reasons</li>
  <li>I have a website on E:\WWW\
  -I have a repository on E:\WWW\</li>
  </ul>
  
  <p>Then I try to access <a href="http://localhost/hgweb.cgi" rel="nofollow">http://localhost/hgweb.cgi</a> and I get this error:</p>
  
  <p>"The specified CGI application misbehaved by not returning a complete set of HTTP headers"</p>
  
  <p>Please, help for I am getting pretty frustrated.
  Thanks a lot!</p>
  
  <p>Maarten / Netherlands</p>